Boost logo

Boost Users :

Subject: Re: [Boost-users] returning range adaptor generator
From: Kyle Lutz (kyle.r.lutz_at_[hidden])
Date: 2013-10-01 16:55:15


On Tue, Oct 1, 2013 at 4:21 PM, Nick Stokes
<randomaccessiterator_at_[hidden]> wrote:
> What should be the return type for a function that returns an adapted range?
> E.g.
>
> template<class Range>
> xxx getIndirected( const Range& r ) {
> return r | boost::adaptors::indirected;
> }

boost::indirected_range<Range>

-kyle


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net