Boost logo

Boost :

From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2007-11-19 10:42:43


On 11/19/07, shunsuke <pstade.mb_at_[hidden]> wrote:
> Dean Michael Berris wrote:
> > * Boost.Range friendly versions of the STL algorithms -- although this
> > may be coming up in C++0x, seeing a version of std::copy,
> > std::transform, etc. that work with Boost.Range+Boost.Iterator combo's
> > will be very welcome. [...]
>
> You can try Oven
> @ http://www.boost-consulting.com/vault/index.php?directory=Algorithms
>
>[...]
> copy(your_rng|filtered(is_even()), applier(my_serializer());
>
> [...]
> copy(my_map|map_values, stream_writer(std::cout));
> std::transform will be obsolete by range adaptors, IMO.
>

So will be many of the *_if variants of the std algorithms.
I use my own simple wrappers around boost::filter_iterator and
boost::transform_iterator and are a pleasure to use.

--
gpd

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