Boost logo

Boost :

From: Lewis Hyatt (lhyatt_at_[hidden])
Date: 2007-03-19 10:48:20


> Or a simple lambda again?
>
> sort(begin, end, bind(&some_type::some_field, _1) <
> bind(&some_type::some_field, _2));

Yes that is a good point. I wonder if it might be worth encapsulating the idea
of multi-sorting on several different members, though. I bet it would be
possible to generate the necessary lambda expressions automatically...

-Lewis


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