$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: kthomases (ken_at_[hidden])
Date: 2002-08-07 04:57:19
--- In Boost-Users_at_y..., "Kamil Burzynski" <K.Burzynski_at_a...> wrote:
> [...] I've also created a sampel template for usage in my company,
> and I would like to get comments about it: is this code ok, exception
> safe, somebody did it better things like that.
It's so useful that it's already in Boost. :)
> for_each( my_map.begin(), my_map.end(), map_fun( &Point::Reset ) );
for_each(my_map.begin(), my_map.end(), boost::bind(&Point::Reset, _1));
See also boost/function.hpp and lambda/lambda.hpp.
Cool stuff!
Ken