More map tests and more API features implemented + tweaks to affected components

[SVN r82713]
This commit is contained in:
Joel de Guzman
2013-02-04 06:21:45 +00:00
parent aba201eb4e
commit 228401d898
6 changed files with 68 additions and 6 deletions

View File

@ -74,13 +74,18 @@ namespace boost { namespace fusion
#include <boost/fusion/container/map/detail/cpp03/map_forward_ctor.hpp>
template <typename T>
map&
operator=(T const& rhs)
map& operator=(T const& rhs)
{
data = rhs;
return *this;
}
map& operator=(map const& rhs)
{
data = rhs.data;
return *this;
}
storage_type& get_data() { return data; }
storage_type const& get_data() const { return data; }

View File

@ -38,6 +38,10 @@ namespace boost { namespace fusion { namespace detail
map_impl(Iterator const& iter, map_impl_from_iterator)
{}
template <typename Iterator>
void assign(Iterator const& iter, map_impl_from_iterator)
{}
void get();
void get_val();
void get_key();
@ -158,6 +162,13 @@ namespace boost { namespace fusion { namespace detail
return *this;
}
template <typename Iterator>
void assign(Iterator const& iter, map_impl_from_iterator fi)
{
rest_type::assign(fusion::next(iter), fi);
element = *iter;
}
Pair element;
};
}}}