Boost logo

Boost :

From: Bjarne Stroustrup (bs_at_[hidden])
Date: 2001-01-10 09:13:22


> From: "John E. Potter" <jpotter_at_[hidden]> write:
>
> 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
>

Yes. Versions of the STL existed before Alex and meng issued that document.
>
>
>

        - Bjarne
Bjarne Stroustrup, http://www.research.att.com/~bs


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