
6 Mar
2005
6 Mar
'05
10:37 p.m.
Pavel Chikulaev wrote:
"Matthias Kaeppler" <nospam@digitalraid.com> wrote in message news:d0futi$j8m$1@sea.gmane.org...
But I can do it with Boost::Bind: std::sort(vec.begin(), vec.end(), boost::bind(std::less<int>(), *_1, *_2));
This looks new to me. What exactly does this do? Sort the container of pointers by applying std::less to the pointees?
Read boost::bind documentation http://www.boost.org/libs/bind/bind.html.
Have you tried compiling this? Maybe you're thinking of Boost.Lambda. Jonathan