|
Boost Users : |
From: David Klein (dave_chp_at_[hidden])
Date: 2007-02-10 12:24:22
me22 wrote:
> On 2/9/07, Meryl Silverburgh <silverburgh.meryl_at_[hidden]> wrote:
>
>> how can I change it so that it compares with the 'y' attribute? like,
>> rect1.y < rect2.y?
>>
>>
> As of Boost 1.33:
> sort(rl.begin(), rl.end(),
> bind(&Rect::y, _1) < bind(&Rect::y, _2) );
>
> http://boost.org/libs/bind/bind.html#operators
>
> ~ Scott McMurray
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
Oh, very cool. Thanks for the info Scott.
-- Regards, dave
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net