rotate_copy

Syntax:

    #include <algorithm>
    output_iterator rotate_copy( forward_iterator start, forward_iterator middle, forward_iterator end, output_iterator result );

The rotate_copy() algorithm is similar to the rotate() algorithm, except that the range of elements is copied to result before being rotated.

Related Topics: rotate