I have a third-party function with this signature:
std::vector<T> f(T t);
I also have an existing potentially infinite range (of the range-v3 sort) of T named src. I want to create a pipeline that maps f to all elements of that range and flattens all the vectors into a single range with all their elements.
Instinctively, I would write the following.
auto rng = src | view::transform(f) | view::join;
However, this won't work didn't use to work, because we cannot couldn't create views of temporary containers.
UPDATE: This issue has been patched by this commit.
How does range-v3 support such a range pipeline?