How do I concatenate two std::vectors?
std::vector
With C++11, I'd prefer following to append vector b to a:
std::move(b.begin(), b.end(), std::back_inserter(a));
when a and b are not overlapped, and b is not going to be used anymore.
a
b
This is std::move from , not the usual std::move from .