1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
hi(rotate) hi(rotate_copy)
itemization(
it() Header file: tt(<algorithm>)
it() Function prototype:
itemization(
itt(void rotate([ExecPol,] ForwardIterator first, ForwardIterator
middle, ForwardIterator last);)
itt(OutputIterator rotate_copy([ExecPol,] ForwardIterator first,
ForwardIterator middle, ForwardIterator last, OutputIterator result);)
)
it() Description:
itemization(
it() The first prototype: elements in the range rangett(first,
middle) are moved to the end of the container, the elements in the range
rangett(middle, last) are moved to the beginning of the container, keeping the
order of the elements in the two sub-ranges intact.
it() The elements in the range rangett(middle, last) and
then the elements in the range rangett(first, middle) are inserted into
tt(result), returning the output iterator following the last insertion.
The order of the elements in the source ranges is not altered.
)
it() Example:
verbinclude(-a examples/rotate.cc)
)
|