Namespaces
Variants

std::ranges::take_view<V>:: sentinel

From cppreference.net
Ranges library
Range adaptors
template < bool Const >
class /*sentinel*/
(C++20 起)
( 仅用于说明* )

当底层视图不是 sized_range 时, take_view::end 的返回类型。

类型 /*sentinel*/ < true > 由常量限定重载返回。类型 /*sentinel*/ < false > 由非常量限定重载返回。

目录

成员类型

成员类型 定义
Base (private) maybe-const  < Const, V >
( 仅用于说明的成员类型* )

数据成员

名称 定义
ranges:: sentinel_t < Base > end_ (私有) 从(可能经过 const 限定) V 获取的哨兵
( 仅用于说明的成员对象* )

成员函数

构造哨兵对象
(公开成员函数)
返回底层哨兵
(公开成员函数)

非成员函数

(C++20)
比较哨位与从 take_view::begin 返回的迭代器
(函数)