ValueComparePredicate< T, COMPARE > Struct Template Reference

#include <algorithms.h>

详细描述

template<typename T, typename COMPARE>
struct maxon::ValueComparePredicate< T, COMPARE >

A matcher that finds the first element equal to a value based on a custom comparison function.

公共成员函数

  ValueComparePredicate (const ValueComparePredicate &)=default
ValueComparePredicate operator= (const ValueComparePredicate &)=default
  ValueComparePredicate (const T &valueIn, const COMPARE &compIn)
template<typename U >
Bool   operator() (const U &other) const

Public Attributes

const T &  value
const COMPARE &  comp

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

◆  ValueComparePredicate() [1/2]

ValueComparePredicate ( const ValueComparePredicate < T, COMPARE > &  )
default

◆  ValueComparePredicate() [2/2]

ValueComparePredicate ( const T &  valueIn ,
const COMPARE &  compIn  
)

成员函数文档编制

◆  operator=()

ValueComparePredicate & operator= ( const ValueComparePredicate < T, COMPARE > &  )
default

◆  operator()()

Bool operator() ( const U &  other ) const

Member Data Documentation

◆  value

const T& value

◆  comp

const COMPARE& comp