Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-01-09 17:04:40


From: "Dave Abrahams" <abrahams_at_[hidden]>

> I just went through the SGI STL site looking for an algorithm fitting
> the following description:
>
> Given a sequence s, a predicate p, and an output iterator r,
> copies the elements e of s for which p(e) is true to the range
> beginning with r.
>
> I was surprised not to find it. Have I missed something obvious?

No, AFAIK. remove_copy_if is close.

> Time
> for boost/algorithm.hpp?

Time for std::copy_if, I'd say. :-)

--
Peter Dimov
Multi Media Ltd.

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