PredicateMatcher< PRED > Struct Template Reference

#include <algorithms.h>

Detailed Description

template<typename PRED>
struct maxon::PredicateMatcher< PRED >

A matcher that finds the first element which satisfies a predicate.

Public Member Functions

 PredicateMatcher (const PRED &predIn)
 
 PredicateMatcher (const PredicateMatcher &)=default
 
PredicateMatcheroperator= (const PredicateMatcher &)=default
 
template<typename ITERATOR , typename SENTINEL >
auto FindNext (ITERATOR first, SENTINEL sentinel) const -> Match< ITERATOR >
 
template<typename INDEXABLE >
auto FindNextIndex (const INDEXABLE &indexable, IndexPair indexPair) const -> Match< Int >
 

Public Attributes

PRED pred
 

Constructor & Destructor Documentation

◆ PredicateMatcher() [1/2]

PredicateMatcher ( const PRED &  predIn)
explicit

◆ PredicateMatcher() [2/2]

PredicateMatcher ( const PredicateMatcher< PRED > &  )
default

Member Function Documentation

◆ operator=()

PredicateMatcher& operator= ( const PredicateMatcher< PRED > &  )
default

◆ FindNext()

auto FindNext ( ITERATOR  first,
SENTINEL  sentinel 
) const -> Match<ITERATOR>

◆ FindNextIndex()

auto FindNextIndex ( const INDEXABLE indexable,
IndexPair  indexPair 
) const -> Match<Int>

Member Data Documentation

◆ pred

PRED pred