|
Boost Users : |
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
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