Namespaces
Variants

std::ranges::transform_view<V,F>::哨位<Const>::哨位

来自 zh.cppreference.net
 
 
范围库
范围适配器
 
 
/*sentinel*/() = default;
(1) (C++20 起)
constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end );
(2) (C++20 起)
constexpr /*sentinel*/( /*sentinel*/<!Const> i )
  requires Const &&
    std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>;
(3) (C++20 起)

构造哨位。

1) 默认构造函数。值初始化底层哨位。
2) 用 end 初始化底层哨位。
3) 从 /*sentinel*/<false> 转换为 /*sentinel*/<true>。移动构造对应成员。

参数

end - 表示(可能为 const 限定的) V 末尾的哨兵
i - 一个 /*sentinel*/ < false >

示例