forked from boostorg/fusion
More map tests and more API features implemented + tweaks to affected components
[SVN r82713]
This commit is contained in:
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
}}}
|
||||
|
Reference in New Issue
Block a user