名稱空間
變體
操作

std::ranges::take_while_view 的推導指南

來自 cppreference.com
 
 
範圍庫 (Ranges library)
範圍介面卡 (Range adaptors)
 
 
定義於標頭檔案 <ranges>
template< class R, class Pred >
take_while_view( R&&, Pred ) -> take_while_view<views::all_t<R>, Pred>;
(C++20 起)

提供了 推導指南 用於 std::ranges::take_while_view,以允許從 range 和謂詞進行推導。

[編輯] 示例