// Illustrating the generic rotate algorithm. #include #include #include #include int main() { vector vecChar = string("Software Engineering "); // Rotate the vector so that "Engineering " comes first: rotate(vecChar.begin(), vecChar.begin() + 9, vecChar.end()); assert(string(vecChar) == string("Engineering Software ")); }