peter_foelsche writes:
or even more clear:
#include <map> #include <set>
typedef std::map
CInt2IntMap; typedef std::set CIntSet; static CInt2IntMap convert(const CIntSet &_r) { CInt2IntMap s; for (CIntSet::const_iterator p = _r.begin(); p != _r.end(); ++p) s.insert(std::make_pair(*p, s.size())); return s; }
//required headers
#include <cstddef>
#include
{ }; typedef mpl::vector< mpl::size_t<4>, mpl::size_t<8>, mpl::size_t<42>
test_input_sequence;
typedef mpl::map<
mpl::pair
test_expected_result;
BOOST_MPL_ASSERT((
mpl::equal