W3cubDocs

/C++

deduction guides for std::ranges::take_while_view

Defined in header <ranges>
template< class R, class Pred >
take_while_view( R&&, Pred ) -> take_while_view<views::all_t<R>, Pred>;
(since C++20)

The deduction guide is provided for std::ranges::take_while_view to allow deduction from range and predicate.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/take_while_view/deduction_guides