RepeatingPredicateMatcher< PRED > Struct Template Reference

#include <algorithms.h>

详细描述

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

A matcher that finds the first sequence of continuous elements which satisfy a predicate.

公共成员函数

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

const PRED &  pred

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

◆  RepeatingPredicateMatcher() [1/2]

RepeatingPredicateMatcher ( const PRED &  predIn )
explicit

◆  RepeatingPredicateMatcher() [2/2]

RepeatingPredicateMatcher ( const RepeatingPredicateMatcher < PRED > &  )
default

成员函数文档编制

◆  operator=()

RepeatingPredicateMatcher & operator= ( const RepeatingPredicateMatcher < 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

const PRED& pred