|
Boost : |
From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2002-05-07 09:26:45
"Grunin, Oleg (Exchange)" <ogrunin_at_[hidden]> wrote in message
news:3F04FBB3CE92D21193BC00A0C99B263405351732_at_whmsx21.is.bear.com...
> > From: Anthony Williams [mailto:anthony_w.geo_at_[hidden]]
> > Sent: Friday, May 03, 2002 10:36 AM
> > I just added a page to the wiki, with an implementation of copy_if
> >
> >
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?STLAlgorithmE
> > xtensions/CopyIf
> Doesn't remove_copy_if do the same thing?
remove_copy_if does the exact opposite --- copies all the elements for which
the predicate returns false. Which means you need an adaptable predicate in
order to use std::not1 to negate it.
Anthony
-- Anthony Williams Software Engineer, Nortel Networks Optical Components Ltd The opinions expressed in this message are not necessarily those of my employer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk