名稱空間
變體
操作

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

來自 cppreference.com
 
 
範圍庫 (Ranges library)
範圍介面卡 (Range adaptors)
 
 
template< bool Const >
class /*sentinel*/;
(僅作說明*)
(C++23 起)

當底層檢視不是 common_range 時,adjacent_view::end 的返回型別。

const 限定的過載返回型別 /*sentinel*/<true>。非 const 限定的過載返回型別 /*sentinel*/<false>

目錄

[編輯] 成員型別

成員型別 定義
Base (私有) Consttrue 則為 const V,否則為 V
(僅供說明的成員型別*)

[編輯] 資料成員

成員物件 定義
end_ (私有) 從(可能帶 const 限定的)V 獲得的哨位。
(僅用於闡釋的成員物件*)

[編輯] 成員函式

構造一個哨位
(公開成員函式) [編輯]

[編輯] 非成員函式

比較一個哨位與一個從 adjacent_view::begin 返回的迭代器
(函式) [編輯]
(C++23)
計算一個哨位與一個從 adjacent_view::begin 返回的迭代器之間的距離
(函式) [編輯]

[編輯] 示例

[編輯] 引用

  • C++23 標準 (ISO/IEC 14882:2024)
  • 26.7.25.4 類模板 adjacent_view::sentinel [range.adjacent.sentinel]

[編輯] 參閱