std::move_iterator<Iter>::operator++,+,+=,--,-,-=
提供: cppreference.com
| (1) | ||
move_iterator& operator++(); |
(C++17未満) | |
constexpr move_iterator& operator++(); |
(C++17以上) | |
| (2) | ||
move_iterator& operator--(); |
(C++17未満) | |
constexpr move_iterator& operator--(); |
(C++17以上) | |
| (3) | ||
move_iterator operator++( int ); |
(C++17未満) | |
constexpr move_iterator operator++( int ); |
(C++17以上) | |
| (4) | ||
move_iterator operator--( int ); |
(C++17未満) | |
constexpr move_iterator operator--( int ); |
(C++17以上) | |
| (5) | ||
move_iterator operator+( difference_type n ) const; |
(C++17未満) | |
constexpr move_iterator operator+( difference_type n ) const; |
(C++17以上) | |
| (6) | ||
move_iterator operator-( difference_type n ) const; |
(C++17未満) | |
constexpr move_iterator operator-( difference_type n ) const; |
(C++17以上) | |
| (7) | ||
move_iterator& operator+=( difference_type n ); |
(C++17未満) | |
constexpr move_iterator& operator+=( difference_type n ); |
(C++17以上) | |
| (8) | ||
move_iterator& operator-=( difference_type n ); |
(C++17未満) | |
constexpr move_iterator& operator-=( difference_type n ); |
(C++17以上) | |
イテレータをインクリメントまたはデクリメントします。
1-2) それぞれひとつだけ前置インクリメントまたは前置デクリメントします。
3-4) それぞれひとつだけ後置インクリメントまたは後置デクリメントします。
5-6) それぞれ
n または -n だけ前進したイテレータを返します。7-8) それぞれ
n または -n だけイテレータを前進させます。戻り値
1-2)
*this。3-4) 変更前の
*this のコピー。5-6) それぞれ
move_iterator(base()+n) または move_iterator(base()-n)。7-8)
*this。例
| This section is incomplete Reason: no example |
関連項目
| イテレータを進めます (関数テンプレート) |