std::move_iterator<Iter>::operator++,+,+=,--,-,-=
ja.cppreference.net より
move_iterator& operator++();
|
(1) | (C++17からconstexpr) |
move_iterator& operator--();
|
(2) | (C++17からconstexpr) |
move_iterator operator++( int );
|
(3) | (C++17からconstexpr) (C++20まで) |
constexpr auto operator++( int );
|
(C++20以降) | |
move_iterator operator--( int );
|
(4) | (C++17からconstexpr) |
move_iterator operator+( difference_type n ) const;
|
(5) | (C++17からconstexpr) |
move_iterator operator-( difference_type n ) const;
|
(6) | (C++17からconstexpr) |
move_iterator& operator+=( difference_type n );
|
(7) | (C++17からconstexpr) |
move_iterator& operator-=( difference_type n );
|
(8) | (C++17からconstexpr) |
基礎となるイテレータをインクリメントまたはデクリメントします。
1,3) 基礎となるイテレータをインクリメントします。
2,4) 基礎となるイテレータをデクリメントします。
5)
n だけ進んだイテレータを返します。6)
-n だけ進んだイテレータを返します。7) イテレータを
n だけ進めます。8) イテレータを
-n だけ進めます。パラメータ
| n | - | 現在位置からの相対位置 |
戻り値
1,2)
*this4) 変更前の
*thisのコピー5)
move_iterator(base() + n);6)
move_iterator(base() - n);7,8)
*this例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++11)
|
イテレータを進める
(関数テンプレート) |
|
(C++11)
|
2つのイテレータアダプタ間の距離を計算する
(関数テンプレート) |