Boost logo

Boost :

From: Bjarne Stroustrup (bs_at_[hidden])
Date: 2001-01-09 20:50:11

> From: "DEAN STURTEVANT" <dean_at_[hidden]> writes
> Interesting note: If you look in Nicolai Josuttis' book (The C++
> Standard Library, Addison-Wesley 1999) p. 380, you'll find the
> statement
> remove_copy_if() is a combination of copy() and remove_if(). It
> removes each element in the source range [beg,end) ...
> which is certainly not the definition in the standard!
> - Dean

To the best of my knowledge, this is what was mistakenly removed from the
original STL:

template<class In, class Out, class Pred>
Out copy_if(In first, In last, Out res, Pred p)
        while (first != last) {
                if (p(*first)) *res++ = *first;
        return res;

        - Bjarne
Bjarne Stroustrup,

Boost list run by bdawes at, gregod at, cpdaniel at, john at