Daily bit(e) of C++ | std::rotate_copy
Daily bit(e) of C++ #448, The algorithm for copying a rotated version of a range: std::rotate_copy.
The std::rotate_copy algorithm will write a rotated version of the input range to the provided output iterator.
A range rotated around a pivot is the subrange [pivot, end) followed by [begin, pivot).
The algorithm does have a parallel variant.