copy a vector in cpp 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));