
4 Jun
2009
4 Jun
'09
8:51 a.m.
If I'm iterating over a map with, say find_if, and my predicate function accepts the mapped_type of the map, is there a mechanism to pick out the pair.second value inline? class C; map< int, C > m; bool pred( const C & ); // correct version of this intent. find_if( m.begin( ), m.end( ), pred( second ) ); Thanks, - Rob.