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

/*sentinel*/() = default;
(1) (C++23 起)
constexpr /*sentinel*/( /*sentinel*/<!Const> i )

    requires Const and

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

构造 sentinel

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>

示例