Standard C++ Library Class Reference

Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
rotate, rotate_copy
Algorithm
Summary
Left rotates the order of items in a collection, placing the first item at the end, second item first,
etc., until the item pointed to by a specified iterator is the first item in the collection.
Contents
Synopsis
Description
Complexity
Example
Warning
Synopsis
#include <algorithm>
template <class ForwardIterator>
void rotate (ForwardIterator first,
ForwardIterator middle,
ForwardIterator last);
template <class ForwardIterator, class OutputIterator>
OutputIterator rotate_copy (ForwardIterator first,
ForwardIterator middle,
ForwardIterator last,
OutputIterator result);