std::move_sentinel
來自 cppreference.com
< cpp | 迭代器 (iterator)
| 定義於標頭檔案 <iterator> |
||
| template< std::semiregular S > class move_sentinel; |
(C++20 起) | |
std::move_sentinel 是一個哨兵介面卡,用於與 std::move_iterator 一起表示範圍。
目錄 |
[編輯] 模板引數
| S | - | 底層哨兵的型別 |
[編輯] 成員函式
構造一個新的 move_sentinel(公開成員函式) | |
將一個 move_sentinel 的內容賦值給另一個(公開成員函式) | |
| 返回底層哨兵的副本 (公開成員函式) |
[編輯] 成員物件
| 成員名稱 (Member name) | 定義 |
last (私有) |
底層哨兵 (僅用於闡釋的成員物件*) |
[編輯] 非成員函式
| 比較底層迭代器和底層哨兵 (函式模板) | |
| 計算底層迭代器與底層哨兵之間的距離 (函式模板) |
[編輯] 示例
| 本節不完整 原因:無示例 |
[編輯] 另請參閱
| (C++11) |
解引用為右值的迭代器介面卡 (類模板) |