Namespaces
Variants

std::ranges::enumerate_view<V>:: sentinel <Const>:: sentinel

From cppreference.net
Ranges library
Range adaptors
/*sentinel*/ ( ) = default ;
(1) (C++23 起)
constexpr /*sentinel*/ ( /*sentinel*/ < ! Const > i )

requires Const &&

std:: convertible_to < ranges:: sentinel_t < V > , ranges:: sentinel_t < Base >> ;
(2) (C++23 起)
private :
constexpr explicit /*sentinel*/ ( ranges:: sentinel_t < Base > end ) ;
(3) ( 仅用于说明* )

构造一个 哨位

1) 默认构造函数。使用 ranges:: sentinel_t < Base > ( ) 对底层哨兵进行 值初始化
2) /*sentinel*/ < false > /*sentinel*/ < true > 的转换。通过 std :: move ( other. end_ ) 移动构造底层哨兵 end_
3) 一个私有构造函数,由 enumerate_view::end 使用。通过 std :: move ( end ) 移动构造 end_ 。此构造函数对用户不可访问。

参数

i - a /*sentinel*/ < false >

示例