Boost logo

Boost Users :

From: me22 (me22.ca_at_[hidden])
Date: 2007-02-10 00:54:22


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 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