rotate « STL Algorithms Modifying sequence operations « C++






1.Use the generic rotate algorithm
2.Use rotate to rotate one element to the left
3.Use rotate to rotate two elements to the right
4.Use rotate to rotate so that element with value 4 is the beginning