Namespaces
Variants

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

ja.cppreference.net より
 
 
Ranges ライブラリ
範囲アダプタ
 
 
template< bool Const >
class /*sentinel*/;
(説明専用*)
(C++23 から)

基盤となる view が adjacent_view::end ではない場合の common_range の戻り値の型。

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

メンバ型

型 定義
Base (プライベート) maybe-const <Const, V>
(説明専用メンバ型*)

データメンバ

メンバ 説明
end_ (private) maybe-const <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]

関連項目