std::ranges::enumerate_view<V>::sentinel
来自cppreference.com
                    
                                        
                    < cpp | ranges | enumerate view
                    
                                                            
                    |   template< bool Const > class /*sentinel*/; // 仅用于阐释  | 
(C++23 起) | |
若底层视图 V 不是 common_range 时 enumerate_view::end 的返回类型。
对于 const-限定重载返回类型 /*sentinel*/<true>。对于非 const-限定重载返回类型 /*sentinel*/<false>。
此类模板的名字 (这里表示为 /*sentinel*/) 未指定。
数据成员
/*sentinel*/ 的典型实现仅持有一个非静态数据成员:ranges::sentinel_t<Base> (见下). 类型的哨位 end_ (此名字仅用于阐释)。
成员类型
| 成员类型 | 定义 | 
 Base (private)
 | 
 const V,若 Const 为 true,否则为 V。此名字仅用于阐释。
 | 
成员函数
|    (C++20)  | 
  构造哨位  (公开成员函数)  | 
|    (C++23)  | 
  返回指代范围末尾的哨位  (公开成员函数)  | 
非成员函数
|    (C++20)  | 
  比较哨位与 enumerate_view::begin 返回的迭代器  (函数)  | 
|    (C++20)  | 
   计算哨位与 enumerate_view::begin 返回的迭代器的距离  (函数)  | 
示例
| 本节未完成 原因:暂无示例  | 
引用
- C++23 标准(ISO/IEC 14882:2023):
 
-  26.7.23.4 Class template 
enumerate_view::sentinel[range.enumerate.sentinel] 
-  26.7.23.4 Class template