I need to do convert std::vector<std::vector<T>>
to std::vector<T>
(line by line) in a lot of places in my code. I obviously know how to implement it by myself, but is there any short-code solution in boost or stl? (i can use only C++98)
UPD: I need some very short solution, like single line call of some function (may be with boost lambda), without loops, so solution from C++ pushing elements of a vector of vectors into a vector is not acceptable.
UPD2: please, do not post the answers with loops, i know how to do that. The question is in short-code way, not in idea.