Namespaces
Variants

std::ranges::adjacent_view<V,N>::哨位<Const>::哨位

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

构造哨位。

1) 默认构造函数。值初始化底层哨位(记作 end_)为 ranges::sentinel_t<Base>()。
2) 从 /*sentinel*/<false> 转换到 /*sentinel*/<true>。移动构造底层哨位 end_,使用 i 的对应成员。

此类型还有一个私有构造函数,由 ranges::adjacent_view::end 使用。此构造函数对用户不可访问。

参数

i - a /*sentinel*/ < false >

示例