std::ranges::elements_view<V,N>::sentinel
来自cppreference.com
< cpp | ranges | elements view
范围库
std::ranges::elements_view
template<
bool
Const >
class /*sentinel*/; // 仅用于阐释 |
(C++20 起) | |
elements_view::end
在底层类型非 common_range
时的返回类型。
const 限定重载返回 /*sentinel*/<true> 类型。非 const 限定重载返回 /*sentinel*/<false> 类型。
此类模板的名字(此处示为 /*sentinel*/ )是未指定的。
典型实现仅保有一个数据成员:从(可能为 const 限定的) V
获得的哨位 end_
。
成员类型
成员类型 | 定义 |
Base (私有)
|
若 Const 为 true
则为 const
V ,否则为 V
。名称仅用于阐释
|
成员函数
(C++20)
|
构造哨位 (公开成员函数) |
(C++20)
|
返回底层哨位 (公开成员函数) |
非成员函数
(C++20)
|
比较哨位与 elements_view::begin
返回的迭代器 (函数) |
(C++20)
|
计算哨位与 elements_view::begin
返回的迭代器的距离 (函数) |