名前空間
変種
操作

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

提供: cppreference.com
 
 
イテレータライブラリ
イテレータコンセプト
イテレータプリミティブ
アルゴリズムのコンセプトとユーティリティ
間接呼び出し可能コンセプト
共通アルゴリズム要件
ユーティリティ
イテレータアダプタ
ストリームイテレータ
イテレータのカスタマイゼーションポイント
イテレータ操作
範囲アクセス
(C++11)(C++14)
(C++11)(C++14)
(C++17)(C++20)
(C++14)(C++14)
(C++14)(C++14)
(C++17)
(C++17)
 
std::move_iterator
メンバ関数
move_iterator::operator++move_iterator::operator+move_iterator::operator+=move_iterator::operator--move_iterator::operator-move_iterator::operator-=
非メンバ関数
(C++20)
(C++20)
 
(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

[編集]

[編集]関連項目

イテレータを進めます
(関数テンプレート)[edit]
close