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
(公开成员函数) |
|
将一个
move_sentinel
的内容赋值给另一个
(公开成员函数) |
|
|
返回底层哨位的副本
(公开成员函数) |
成员对象
| 成员名称 | 定义 |
last
(private)
|
底层哨兵
( 仅用于说明的成员对象* ) |
非成员函数
|
(C++20)
|
比较底层迭代器与底层哨兵
(函数模板) |
|
(C++20)
|
计算底层迭代器与底层哨兵之间的距离
(函数模板) |
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(C++11)
|
解引用为右值的迭代器适配器
(类模板) |