std::move_iterator<Iter>::move_iterator
提供: cppreference.com
| (1) | ||
move_iterator(); |
(C++17未満) | |
constexpr move_iterator(); |
(C++17以上) | |
| (2) | ||
explicit move_iterator( iterator_type x ); |
(C++17未満) | |
constexpr explicit move_iterator( iterator_type x ); |
(C++17以上) | |
| (3) | ||
template< class U > move_iterator( const move_iterator<U>& other ); |
(C++17未満) | |
template< class U > constexpr move_iterator( const move_iterator<U>& other ); |
(C++17以上) | |
新しいイテレータアダプタを構築します。
1) デフォルトコンストラクタ。 ベースとなるイテレータは値初期化されます。 結果のイテレータに対する操作は値初期化された
Iterator に対する対応する操作が定義された動作を持つ場合にのみ定義された動作を持ちます。2) ベースとなるイテレータは
x (C++20未満)std::move(x) (C++20以上) で初期化されます。3) ベースとなるイテレータは
other.base() で初期化されます。 other.base() が Iter に変換可能でない場合、動作は未定義です (C++20未満)プログラムは ill-formed です (C++20以上)。引数
| x | - | アダプトするイテレータ |
| other | - | コピーするイテレータアダプタ |
例
| This section is incomplete Reason: no example |
関連項目
| 別のイテレータを代入します (パブリックメンバ関数) |