Boost logo

Boost Users :

From: me22 (me22.ca_at_[hidden])
Date: 2006-09-15 14:55:22


On 9/15/06, Alexander Shyrokov <shirokov_at_[hidden]> wrote:
> 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) );


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net