$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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