function object
std::ranges::views::take_while
Synopsis
inline constexpr /* implementation-defined */ take_while = {};Call signatures
take_while is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class P> [[nodiscard]] constexpr auto take_while( P&& p) noexcept(noexcept(bind-adaptor(*this, static_cast<P &&>(p)))) requires requires { bind-adaptor(*this, static_cast<P&&>(p)); }; - (2)
template<class E, class P> requires requires { std::ranges::take_while_view( std::declval<E>(), std::declval<P>()); } [[nodiscard]] constexpr auto take_while(E&& e, P&& p);