|
Boost Users : |
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2006-02-21 16:38:02
yinglcs2_at_[hidden] wrote:
> I have the following code which copy items if certain
> condition is met:
>
> copy_if(a.begin(), a.end(), back_inserter(b), bind(
> &::feq<float>, _1, max)) );
>
> How can I reverse the logic of that?
> how can I call std::not1() in the boost lambda bind
> library?
copy_if( a.begin()
, a.end()
, back_inserter(b)
, !bind( &::feq<float>, _1, max )
);
Should do it, at least with 1.33.1, if that's what you mean by 'reverse the
logic'.
Jeff Flinn
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