std::ranges::adjacent_view<V,N>::sentinel
来自 zh.cppreference.net
template< bool Const >
class /*sentinel*/;
|
(仅用于说明*) (自 C++23 起) |
|
返回类型为 adjacent_view::end,当底层视图不是 common_range。
类型 /*sentinel*/<true> 由 const 限定的重载返回。类型 /*sentinel*/<false> 由非 const 限定的重载返回。
成员类型
| 类型 | 定义 |
Base (私有)
|
maybe-const <Const, V>(仅用于说明的成员类型*) |
数据成员
| 成员 | 描述 |
end_ (私有)
|
从……获得的哨兵maybe-const <Const, V>(exposition-only member object*) |
成员函数
|
构造哨兵迭代器
(公开成员函数) |
非成员函数
|
(C++23)
|
比较哨位与从
adjacent_view::begin
返回的迭代器
(函数) |
|
(C++23)
|
计算哨位与从
adjacent_view::begin
返回的迭代器之间的距离
(函数) |
示例
|
本节内容不完整
原因:缺少示例 |
参考文献
- C++23 标准 (ISO/IEC 14882:2024):
-
-
26.7.25.4 类模板
adjacent_view::sentinel[range.adjacent.sentinel]
-
26.7.25.4 类模板