code examples for C++ STL alg rotate