Namespaces
Variants

deduction guides for std::ranges::take_while_view

From cppreference.net
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 和谓词进行推导。

示例