File: move.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (30 lines) | stat: -rw-r--r-- 1,417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    hi(move) hi(move_backward) hi(shift_left) hi(shift_right)
    itemization(
        it() Header file: tt(<algorithm>)
        it() Function prototype:
        itemization(
            itt(OutputIter move([ExecPol,] InputIter first, InputIter last, 
                OutputIter dest);)
            itt(BidirIter move_backward(BidirIter first, BidirIter last, 
                BidirIter lastDest);)
        )
        it() Description:
        itemization(
            it() The first prototype: all elements reached from the iterator
range rangett(first, last) are moved to the range starting at tt(dest),
returning the iterator pointing just past the last element in the range
starting at tt(dest). 
            it() The Second prototype: all elements reached from the iterator
range rangett(first, last) are moved in reverse order to the range starting,
em(iterating backward), at tt(lastDest), returning the iterator pointing to the
beginning of the range em(ending) at tt(lastDest). The destination iterator
tt(lastDest) may not point to elements within the range rangett(first, last).
        )
        Following tt(move(_backward)) the elements in the iterator range
rangett(first, last) are still valid, but may have changed.

        See also ti(shift_left) and ti(shift_right):
            (url(cppreference)(https://en.cppreference.com)).
        it() Example:
        verbinclude(-a examples/move.cc)
    )