Given a source range and a unary predicate, present a view of the elements that satisfy the predicate. More...
#include <range/v3/view/filter.hpp>
Public Member Functions | |
template<typename Rng , typename Pred > | |
CPP_TEMPLATE_AUX_0 | c (requires viewable_range< Rng > &&input_range< Rng > &&indirect_unary_predicate< Pred, iterator_t< Rng >>) ccconstexpr filter_view< all_t< Rng > |
CPP_TEMPLATE_AUX_0 Pred | operator() (Rng &&rng, Pred pred) const |
Given a source range and a unary predicate, present a view of the elements that satisfy the predicate.