Namespaces
Variants

std:: move_sentinel

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
定义于头文件 <iterator>
template < std:: semiregular S >
class move_sentinel ;
(C++20 起)

std::move_sentinel 是一个哨兵适配器,用于与 std::move_iterator 共同表示范围。

目录

模板参数

S - 底层哨兵类型

成员函数

构造新的 move_sentinel
(公开成员函数)
将一个 move_sentinel 的内容赋值给另一个
(公开成员函数)
返回底层哨位的副本
(公开成员函数)

成员对象

成员名称 定义
last (private) 底层哨兵
( 仅用于说明的成员对象* )

非成员函数

比较底层迭代器与底层哨兵
(函数模板)
计算底层迭代器与底层哨兵之间的距离
(函数模板)

示例

参见

解引用为右值的迭代器适配器
(类模板)