Topic: Why no copy_if()
Author: phalpern@truffle.ma.ultranet.com (Pablo Halpern)
Date: 1998/02/10 Raw View
I was writing sme code with the standard library and I was looking up
copy_if() in CD-2. When I couldn't find it, I looked in Stroustrup III
and he says "Unfortunately, copy_if() was somehow dropped from the set
of algorithms provided by the standard library (mea culpa).". My work
around was to use remove_copy_if() and negate the predicate with not1().
I'm curious, however, how copy_if() ended up getting dropped from the
standard library and why that was Bjarn's fault.
-------------------------------------------------------------
Pablo Halpern phalpern@truffle.ultranet.com
I am self-employed. Therefore, my opinions *do* represent
those of my employer.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]