copy_backward « STL Algorithms Modifying sequence operations « C++






1.Use the copy_backward algorithms: Shift it right by 2 positions
2.Use std::copy_backward to place elements in one vector into another vector in reverse order