Horizon
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ranges::views::filter_fn Struct Reference

#include <filter.hpp>

Inheritance diagram for ranges::views::filter_fn:
ranges::views::filter_base_fn ranges::views::cpp20_filter_base_fn

Public Member Functions

template<typename Pred >
constexpr auto operator() (Pred pred) const
 
 template (typename Pred, typename Proj)() const expr auto operator()(Pred pred
 
- Public Member Functions inherited from ranges::views::filter_base_fn
 template (typename Rng, typename Pred, typename Proj)(AND input_range< Rng > AND 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)(AND input_range< Rng > AND indirect_unary_predicate< Pred
 
iterator_t< Rng > constexpr filter_view< all_t< Rng >, Pred > operator() (Rng &&rng, Pred pred) const
 

Public Attributes

Proj proj const
 

Detailed Description

ranges::views::filter

The filter view takes in a predicate function T -> bool and converts an input range of T into an output range of T by keeping all elements for which the predicate returns true.

Example

Output

Syntax

auto output_range = input_range | ranges::views::filter(filter_func);
The input_range concept.
The output_range concept.

Parameters

filter_func
input_range
output_range

Member Data Documentation

◆ const

Proj proj ranges::views::filter_fn::const
Initial value:
{
return make_view_closure(
bind_back(filter_base_fn{}, std::move(pred), std::move(proj)))

The documentation for this struct was generated from the following file: