名稱空間
變體
操作

std::ranges::transform_view<V,F>::sentinel

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

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

型別 /*sentinel*/<true> 由 const-qualified 過載返回。型別 /*sentinel*/<false> 由非 const-qualified 過載返回。

目錄

[編輯] 成員型別

成員型別 定義
Parent (私有) maybe-const <Const, ranges::transform_view<V, F>>
(僅供說明的成員型別*)
Base (私有) maybe-const <Const, V>
(僅供說明的成員型別*)

[編輯] 資料成員

成員物件 定義
ranges::sentinel_t<Base> end_ (私有) 從(可能 const 限定的)`V` 獲取的哨兵
(僅用於闡釋的成員物件*)

[編輯] 成員函式

構造一個哨位
(公有成員函式) [編輯]
返回底層哨兵
(公有成員函式) [編輯]

[編輯] 非成員函式

將一個哨兵與從 transform_view::begin 返回的迭代器進行比較
(函式) [編輯]
(C++20)
計算一個哨兵與從 transform_view::begin 返回的迭代器之間的距離
(函式) [編輯]