Let v1 be the target vector, v2 needs to be appended to the back of it.
I\'m now doing:
v1.reserve(v1.size() + v2.size());
copy(v2.begin(), v2.end()
If you have a vector of pod-types, and you really need the performance, you could use memcpy, which ought to be faster than vector<>.insert(...):
v2.resize(v1.size() + v2.size());
memcpy((void*)&v1.front(), (void*)&v2[v1.size()], sizeof(v1.front())*v1.size());
Update: Although I would only use this if performance is really, really, needed, the code is safe for pod types.