
10 Feb
2007
10 Feb
'07
5:54 a.m.
On 2/9/07, Meryl Silverburgh
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