copy contents of one vector to another c++ in function passing by reference code example
Example: copy a part of a vector in another in c++
// Copying vector by copy function
copy(vect1.begin(), vect1.end(), back_inserter(vect2));
// Copying vector by copy function
copy(vect1.begin(), vect1.end(), back_inserter(vect2));