$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-08-07 11:14:04
On Monday 05 August 2002 03:40 am, Kamil Burzynski wrote:
> for_each( my_map.begin(), my_map.end(), map_fun( &Point::Reset ) );
Boost.Bind can do that:
for_each(my_map.begin(), my_map.end(),
bind(&Point::Reset,
bind(&map<int, Point *>::value_type::second, _1)));
So can Boost.Lambda:
for_each(my_map.begin(), my_map.end(),
bind(&Point::Reset,
(&_1)->*&map<int, Point *>::value_type::second));
Doug