Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-03-06 18:09:37


Ooops...

You can do it with Boost::Lambda:

using namespace boost::lambda;
std::sort(vec.begin(), vec.end(), bind(std::less<int>(), *_1, *_2));

Pavel Chikulaev


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk