(1) | ||
move_iterator& operator++(); | (until C++17) | |
constexpr move_iterator& operator++(); | (since C++17) | |
(2) | ||
move_iterator& operator--(); | (until C++17) | |
constexpr move_iterator& operator--(); | (since C++17) | |
(3) | ||
move_iterator operator++( int ); | (until C++17) | |
constexpr move_iterator operator++( int ); | (since C++17) | |
(4) | ||
move_iterator operator--( int ); | (until C++17) | |
constexpr move_iterator operator--( int ); | (since C++17) | |
(5) | ||
move_iterator operator+( difference_type n ) const; | (until C++17) | |
constexpr move_iterator operator+( difference_type n ) const; | (since C++17) | |
(6) | ||
move_iterator operator-( difference_type n ) const; | (until C++17) | |
constexpr move_iterator operator-( difference_type n ) const; | (since C++17) | |
(7) | ||
move_iterator& operator+=( difference_type n ); | (until C++17) | |
constexpr move_iterator& operator+=( difference_type n ); | (since C++17) | |
(8) | ||
move_iterator& operator-=( difference_type n ); | (until C++17) | |
constexpr move_iterator& operator-=( difference_type n ); | (since C++17) |
Increments or decrements the iterator.
n
or -n
positions respectively.n
or -n
positions respectively.*this
*this
that was made before the changemove_iterator(base()+n)
or move_iterator(base()-n)
respectively.*this
advances the iterator (function template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/iterator/move_iterator/operator_arith