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

来自cppreference.com
 
 
范围库
范围适配器
 
 
/*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>

示例