herald  2.0.0
Public Member Functions | Friends | List of all members
herald::analysis::views::filter< Pred > Struct Template Reference

#include <ranges.h>

Public Member Functions

 filter (const Pred &pred)
template<typename Coll >
auto operator() (Coll &c) -> filtered_iterator_proxy< Coll, Pred >


template<typename OtherColl , typename OtherPred >
auto operator| (filtered_iterator_proxy< OtherColl, OtherPred > c, filter< Pred > pred) -> filtered_iterator_proxy< OtherColl, dual_filter< OtherPred, Pred >>
template<typename Coll >
auto operator| (Coll &c, filter< Pred > pred) -> filtered_iterator_proxy< Coll, Pred >

Detailed Description

template<typename Pred>
struct herald::analysis::views::filter< Pred >

Now think about a filter instance that would filter an entire range of values

Use like filter<> myFilter(in_range<int>(18,65)); auto iterable = myFilter(myCollection);

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