Given a source range, unary predicate, and optional projection, 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 , typename Proj > requires viewable_range<Rng> && input_range<Rng> && indirect_unary_predicate<Pred, projected<iterator_t<Rng>, Proj>> | |
constexpr filter_view< all_t< Rng >, composed< Pred, Proj > > | operator() (Rng &&rng, Pred pred, Proj proj) const |
Public Member Functions inherited from ranges::views::cpp20_filter_base_fn | |
template<typename Rng , typename Pred > requires viewable_range<Rng> && input_range<Rng> && indirect_unary_predicate<Pred, iterator_t<Rng>> | |
constexpr filter_view< all_t< Rng >, Pred > | operator() (Rng &&rng, Pred pred) const |
Given a source range, unary predicate, and optional projection, present a view of the elements that satisfy the predicate.