My question is partially motivated by this question.
Is there a way to compose STL algorithms, or user made algorithms, without an intermediate container? An answer can use a tool from boost, but assume the composed algorithms are user made, or from the STL.
So boost::adaptors::reversed
doesn't count since the reversing algorithm is in boost.