Namespaces
Variants

std::ranges::adjacent_view<V,N>:: sentinel

From cppreference.net
Ranges library
Range adaptors
template < bool Const >
class /*sentinel*/ ;
( 説明専用* )
(C++23以降)

基盤となるビューが adjacent_view::end の戻り値型( common_range でない場合)

/*sentinel*/ < true > はconst修飾されたオーバーロードによって返されます。型 /*sentinel*/ < false > は非const修飾されたオーバーロードによって返されます。

目次

メンバー型

メンバー型 定義
Base (private) const V もし Const true ならば、そうでなければ V
( 説明専用メンバー型* )

データメンバ

メンバーオブジェクト 定義
end_ (private) (const修飾された可能性のある) V から取得されたセンチネル。
( 説明専用メンバーオブジェクト* )

メンバー関数

センチネルを構築する
(公開メンバ関数)

非メンバー関数

(C++23)
adjacent_view::begin から返されたイテレータとセンチネルを比較する
(関数)
(C++23)
adjacent_view::begin から返されたイテレータとセンチネル間の距離を計算する
(関数)

参考文献

  • C++23標準 (ISO/IEC 14882:2024):
  • 26.7.25.4 クラステンプレート adjacent_view::sentinel [range.adjacent.sentinel]

関連項目