Is there a method to add a vector at the end of another vector? For example if my vectors are
std::vector<int> v1(3);
std::vector<int> v2(3);
/* ... initialize vectors ... */
/* ... for example, v1 is 1 2 3 and v2 is 4 5 6 ... */
which is the smartest way to add v2
at the end of v1
(i.e. to obtain v1
= 1 2 3 4 5 6) without using a cycle and a push_back
?