Namespaces
Variants

std::ranges:: iota_view<W, Bound>:: sentinel

From cppreference.net
Ranges library
Range adaptors
struct /*sentinel*/ ;
( 説明専用* )

ranges:: iota_view < W, Bound > :: sentinel は、 ranges:: iota_view < W, Bound > end() によって返される到達可能な番兵の型です。

目次

データメンバ

メンバー 定義
Bound bound_ センチネル値
( 説明専用メンバーオブジェクト* )

メンバー関数

std::ranges::iota_view:: sentinel :: sentinel

/*sentinel*/ ( ) = default ;
(1) (C++20以降)
constexpr explicit /*sentinel*/ ( Bound bound ) ;
(2) (C++20以降)
1) bound_ を値初期化します。
2) bound_ bound で初期化します。

非メンバー関数

operator== (std::ranges::iota_view:: iterator , std::ranges::iota_view:: sentinel )

friend constexpr bool operator == ( const /*iterator*/ & x,
const /*sentinel*/ & y ) ;
(C++20以降)

x. value_ == y. bound_ を返します。

!= 演算子は operator== から 合成されます

この関数は通常の 非修飾名探索 または 修飾名探索 では可視化されず、 sentinel が引数の関連クラスである場合にのみ 実引数依存名前探索 によって発見されます。

operator- (std::ranges::iota_view:: iterator , std::ranges::iota_view:: sentinel )

friend constexpr std:: iter_difference_t < W >

operator - ( const /*iterator*/ & x, const /*sentinel*/ & y )

requires std:: sized_sentinel_for < Bound, W > ;
(1) (since C++20)
friend constexpr std:: iter_difference_t < W >

operator - ( const /*sentinel*/ & x, const /*iterator*/ & y )

requires std:: sized_sentinel_for < Bound, W > ;
(2) (since C++20)
1) x.value_ - y.bound_ を返します。
2) -(y.value_ - x.bound_) を返します。

これらの関数は通常の 非修飾名探索 または 修飾名探索 では可視化されず、 sentinel が引数の関連クラスである場合にのみ 実引数依存探索 によって発見されます。