Greetings,
I am trying to perform a copy from one vector (vec1) to another vector (vec2) using the following 2 abbreviated lines of code (full test app follows):
In my opinion, the simplest way is to use the std::vector::insert method:
std::vector::insert
v2.insert(v2.end(), v1.begin(), v1.end());
(see std::vector::insert)