PredicateMatcher< PRED > Struct Template Reference

#include <algorithms.h>

详细描述

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

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

公共成员函数

  PredicateMatcher (const PRED &predIn)
  PredicateMatcher (const PredicateMatcher &)=default
PredicateMatcher operator= (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

构造函数 & 析构函数文档编制

◆  PredicateMatcher() [1/2]

PredicateMatcher ( const PRED &  predIn )
explicit

◆  PredicateMatcher() [2/2]

PredicateMatcher ( const PredicateMatcher < PRED > &  )
default

成员函数文档编制

◆  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