Boost logo

Boost Users :

Subject: Re: [Boost-users] [range] Boost.Range adaptor return types
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-07-22 14:47:35


Le 22/07/2010 18:42, Jeremiah Willcock wrote:
> I would like to return an adapted Boost.Range from a function and would
> like to know what return type to put for the function. In my case, I am
> wrapping a counting_range with transformed(). Is there a metafunction to
> compute these return types? Should I just be using boost::result_of? The
> result_of expression is very long because of the nesting (though of
> course a typedef can help with the inner parts of that). Thank you for
> your help.
>

boost::transform_range<UnaryFunction, InputRange>.

It seems however that the naming of these things is not consistent, as
some have a name that ends with -ed.
I have file a ticket about this.


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