std:: move_sentinel
From cppreference.net
C++
Iterator library
| Iterator concepts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::move_sentinel
|
定義於標頭檔
<iterator>
|
||
|
template
<
std::
semiregular
S
>
class move_sentinel ; |
(C++20 以降) | |
std::move_sentinel
は、
std::move_iterator
と共に範囲を表すために使用されるセンチネルアダプタです。
目次 |
テンプレートパラメータ
| S | - | 基盤となるセンチネルの型 |
メンバー関数
新しい
move_sentinel
を構築する
(public member function) |
|
ある
move_sentinel
の内容を別のものに代入する
(public member function) |
|
|
基盤となるセンチネルのコピーを返す
(public member function) |
メンバーオブジェクト
| メンバー名 | 定義 |
last
(private)
|
基盤となるセンチネル
( 説明専用メンバーオブジェクト* ) |
非メンバー関数
|
(C++20)
|
基底となるイテレータと基底となるセンチネルを比較する
(関数テンプレート) |
|
(C++20)
|
基底となるイテレータと基底となるセンチネル間の距離を計算する
(関数テンプレート) |
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++11)
|
右辺値にデリファレンスするイテレータアダプタ
(クラステンプレート) |