std::move_iterator<Iter>::operator++,+,+=,--,-,-= - cppreference.com
From cppreference.com
|
(1) | (constexpr since C++17) |
|
(2) | (constexpr since C++17) |
| (3) | ||
|
(constexpr since C++17) (until C++20) |
|
|
|
(since C++20) | |
|
(4) | (constexpr since C++17) |
|
(5) | (constexpr since C++17) |
|
(6) | (constexpr since C++17) |
|
(7) | (constexpr since C++17) |
|
(8) | (constexpr since C++17) |
Increments or decrements the underlying iterator.
| Overload | Equivalent to | ||||
|---|---|---|---|---|---|
| (1) | ++current ; return *this;
| ||||
| (2) | --current ; return *this;
| ||||
| (3) |
| ||||
| (4) | move_iterator tmp = *this; --current ; return tmp;
| ||||
| (5) | return move_iterator(current + n);
| ||||
| (6) | return move_iterator(current - n);
| ||||
| (7) | current += n; return *this;
| ||||
| (8) | current -= n; return *this;
|
Parameters
| n | - | position relative to current location |
Return value
As described above.
Example
See also
| advances the iterator (function template) [edit] | |
| computes the distance between two iterator adaptors (function template) [edit] |