cpp/numeric/valarray/cshift

Returns a new valarray of the same size with elements whose positions are shifted circularly by elements.

A non-negative value of shifts the elements circularly left  places and a negative value of  shifts the elements circularly right  places.

Return value
The resulting valarray with circularly shifted elements.