Scroll to navigation

std::ranges::take_while_view::pred(3) C++ Standard Libary std::ranges::take_while_view::pred(3)

NAME

std::ranges::take_while_view::pred - std::ranges::take_while_view::pred

Synopsis


constexpr const Pred& pred() const; (since C++20)


Returns a reference to the stored predicate.


If *this does not store a predicate (e.g. an exception is thrown on the assignment
to *this, which copy-constructs or move-constructs a Pred), the behavior is
undefined.

Parameters


(none)

Return value


a reference to the stored predicate

Example


This section is incomplete
Reason: no example

2022.07.31 http://cppreference.com