Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::views::take_while_fn Struct Reference

Synopsis of methods

constexpr view< take_while_fntake_while {}
 

Public Member Functions

template<typename Rng , typename Pred >
constexpr auto operator() (Rng &&rng, Pred pred) const -> take_while_view< all_t< Rng >, Pred > requires viewable_range< Rng > &&input_range< Rng > &&indirect_unary_predicate< Pred &, iterator_t< Rng >>
 
template<typename Rng , typename Pred , typename Proj >
constexpr auto operator() (Rng &&rng, Pred pred, Proj proj) const -> take_while_view< all_t< Rng >, composed< Pred, Proj >> requires viewable_range< Rng > &&input_range< Rng > &&indirect_unary_predicate< composed< Pred, Proj > &, iterator_t< Rng >>