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

Description

Given a source range and a unary predicate, present a view of the elements that satisfy the predicate.

+ Inheritance diagram for ranges::views::cpp20_filter_base_fn:

Public Member Functions

template<typename Rng , typename Pred >
constexpr filter_view< all_t< Rng >, Pred > operator() (Rng &&rng, Pred pred) const
 

Member Function Documentation

◆ operator()()

template<typename Rng , typename Pred >
constexpr filter_view<all_t<Rng>, Pred> ranges::views::cpp20_filter_base_fn::operator() ( Rng &&  rng,
Pred  pred 
) const
constexpr
Precondition
requires viewable_range<Rng> && input_range<Rng> && indirect_unary_predicate<Pred, iterator_t<Rng>>