std::move_sentinel<S>:: move_sentinel
From cppreference.net
<
cpp
|
iterator
|
move sentinel
C++
Iterator library
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::move_sentinel
| Member functions | ||||
|
move_sentinel::move_sentinel
|
||||
| Non-member functions | ||||
|
(C++20)
|
||||
|
(C++20)
|
|
constexpr
move_sentinel
(
)
;
|
(1) | (C++20以降) |
|
constexpr
explicit
move_sentinel
(
S x
)
;
|
(2) | (C++20以降) |
|
template
<
class
S2
>
requires
std::
convertible_to
<
const
S2
&
, S
>
|
(3) | (C++20以降) |
新しいセンチネルアダプタを構築します。
1)
デフォルトコンストラクタ。基盤となるセンチネルは値初期化されます。
2)
基盤となるセンチネルは
x
で初期化されます。
3)
基盤となるセンチネルは、
other
のセンチネルで初期化されます。
パラメータ
| x | - | センチネルを適合させる |
| other | - | コピーするセンチネルアダプタ |
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
新しい
move_iterator
を構築する
(
std::move_iterator<Iter>
のpublicメンバ関数)
|