
15 May
2010
15 May
'10
8:31 p.m.
Mostafa wrote:
any_iterator<...> it_any = my_mapped_type_iterator_adaptor(map_instance.begin());
How would I go about doing that with ranges?
Something like this (untested): boost::iterator_range< any_iterator<...> > range_any = boost::make_iterator_range( map_instance | boost::adaptors::map_values ); Simply boost::iterator_range< any_iterator<...> > range_any = map_instance | boost::adaptors::map_values; might work just as well, but I am not sure.
Thanks, -Mostafa
HTH, Gevorg