Rotate Ranges

We can rotate our data such that every element now lies at a different index, which is decided by the rotation offset.

std::rotate and std::rotate_copy rotate their elements.

std::rotate: Rotates the elements in such a way that middle becomes the new first element.

Get hands-on with 1400+ tech skills courses.