
1 Oct
2013
1 Oct
'13
8:21 p.m.
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;
}
The use case being, providing a API with these little useful helpers
without forcing the user to know about Boost.Range at all. Like so:
#include