std::move_iterator<Iter>::operator++,+,+=,--,-,-= - cppreference.com
Namespaces
Variants

std::move_iterator<Iter>::operator++,+,+=,--,-,-=

From cppreference.com
 
 
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11)(C++14)
(C++14)(C++14)  
(C++11)(C++14)
(C++14)(C++14)  
(C++17)(C++20)
(C++17)
(C++17)
 
 
move_iterator& operator++();
(1) (constexpr since C++17)
move_iterator& operator--();
(2) (constexpr since C++17)
(3)
move_iterator operator++( int );
(constexpr since C++17)
(until C++20)
constexpr auto operator++( int );
(since C++20)
move_iterator operator--( int );
(4) (constexpr since C++17)
move_iterator operator+( difference_type n ) const;
(5) (constexpr since C++17)
move_iterator operator-( difference_type n ) const;
(6) (constexpr since C++17)
move_iterator& operator+=( difference_type n );
(7) (constexpr since C++17)
move_iterator& operator-=( difference_type n );
(8) (constexpr since C++17)

Increments or decrements the underlying iterator.

1,3) Increments the underlying iterator.
2,4) Decrements the underlying iterator.
5) Returns an iterator which is advanced by n positions.
6) Returns an iterator which is advanced by -n positions.
7) Advanced the iterator by n positions.
8) Advanced the iterator by -n positions.

Parameters

n - position relative to current location

Return value

1,2) *this
3) A copy of *this made before the change. If Iter does not model forward_iterator, returns nothing(since C++20)
4) A copy of *this made before the change
5) move_iterator(base() + n);
6) move_iterator(base() - n);
7,8) *this

Example

See also