Node:Rotate, Next:Random shuffle, Previous:Reverse, Up:Mutating sequence operations
| rotate (ForwardIterator first, ForwardIterator middle, ForwardIterator last) | Function |
For each non-negative integertemplate i < (last - first), rotate places the
element from the position first + i
into position first + (i + (last - middle)) % (last - first).
[first, middle) and [middle, last) are valid
ranges. At most last - first swaps are done.
|
| OutputIterator rotate_copy (ForwardIterator first, ForwardIterator middle, ForwardIterator last, OutputIterator result) | Function |
template
|