|
Boost : |
From: Victor A. Wagner, Jr. (vawjr_at_[hidden])
Date: 2002-05-07 22:51:31
At Tuesday 2002/05/07 10:43, you wrote:
>My point was: why add another algorithm if the intended result is so easy to
>achieve with an existing one.
it's not always that easy. Scott Meyers devoted an entire "topic" to
getting copy_if correct in his book, and he didn't allow for some of the
stuff in the one posted.
> > -----Original Message-----
> > From: Powell, Gary [mailto:powellg_at_[hidden]]
> > Sent: Tuesday, May 07, 2002 10:58 AM
> > To: boost_at_[hidden]
> > Subject: RE: [boost] copy_if
> >
> >
> > It's the reverse,
> >
> > remove_copy_if(a.begin,a.end, b.begin, valuesIDontwant);
> >
> > copy_if(a.begin,a.end, b.begin, valuesIwant);
> >
> > So you could forward one from the other, reversing the
> > predicate result.
> >
> > -Gary-
> >
> > -----Original Message-----
> > From: Grunin, Oleg (Exchange) [mailto:ogrunin_at_[hidden]]
> > Sent: Tuesday, May 07, 2002 7:09 AM
> > To: 'boost_at_[hidden]'
> > Subject: RE: [boost] copy_if
> >
> >
> > Doesn't remove_copy_if do the same thing?
> >
> > -----Original Message-----
> > From: Anthony Williams [mailto:anthony_w.geo_at_[hidden]]
> > Sent: Friday, May 03, 2002 10:36 AM
> > To: boost_at_[hidden]
> > Subject: [boost] copy_if
> >
> >
> > I just added a page to the wiki, with an implementation of copy_if
> >
> > http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl
>?STLAlgori
>thmE
>xtensions/CopyIf
>
>Comments, anyone
>
>Anthony
>--
>Anthony Williams
>Software Engineer, Nortel Networks Optical Components Ltd
>The opinions expressed in this message are not necessarily those of my
>employer
>
>
>
>
>
>****************************************************************
>Bear Stearns is not responsible for any recommendation, solicitation,
>offer or agreement or any information about any transaction, customer
>account or account activity contained in this communication.
>***********************************************************************
>
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com
PGP RSA fingerprint = 4D20 EBF6 0101 B069 3817 8DBF C846 E47A
PGP D-H fingerprint = 98BC 65E3 1A19 43EC 3908 65B9 F755 E6F4 63BB 9D93
The five most dangerous words in the English language:
"There oughta be a law"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk