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.
Rotates the elements in such a way that middle
becomes the new first element:
Get hands-on with 1400+ tech skills courses.