
14 Feb
2005
14 Feb
'05
2:01 p.m.
"Eyal Farago" <eyal.farago@actimize.com> wrote in message news:BC29F2A417B44F44BD3AA1AD9868CEDC034244@ilexchange.adrembi.com... | you can easily achieve this using (make_)transform_iterator and boost bind: | | make_transform_iterator( | map.begin(), | boost::bind( &MAP_TYPE::value_type::first, _1 ) | ) | | (give or take a typename before MAP_TYPE::...) | I think it's so simple that you don't really need a utility class for it. well, I cannot use that when I want to write a manual loop. yes, it is simple, but also frequently used. And we also have to think about less experienced users IMO. -Thorsten