Boost logo

Boost :

From: John E. Potter (jpotter_at_[hidden])
Date: 2001-01-09 21:33:19


On Tue, 9 Jan 2001, Bjarne Stroustrup wrote:

> 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;
> ++first;
> }
> return res;
> }

Just as a point of reference, the 31 October 1995 HP documentation
does not contain copy_if. Copy and copy_backwards only.

John


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk