std::ranges::take_while_view<V,Pred>::pred

From cppreference.com
 
 
 
 
constexpr const Pred& pred() const;
(since C++20)

Returns a reference to the stored predicate.

If *this does not store a predicate (e.g. *this was default constructed and Pred is not default_initializable), the behavior is undefined.

Parameters

(none)

Return value

a reference to the stored predicate

Example