7 Aug
2002
7 Aug
'02
9:57 a.m.
--- In Boost-Users@y..., "Kamil Burzynski"
[...] 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