15 Sep
2006
15 Sep
'06
6:55 p.m.
On 9/15/06, Alexander Shyrokov
Is it possible to convert boost::bind(&TMap::value_type::second,_1) to a function object or a typedef name?
Though it's not exactly what you're asking for, one nice way would be to use an iterator adapter that returns base_itr->second when dereferenced. I hear that it's simple to make one with Boost.Iterator. You'd then just do std::for_each( seconder(a.begin()), seconder(a.end()), boost::bind(f,_1) );