ValueComparePredicate< T, COMPARE > Struct Template Reference

#include <algorithms.h>

Detailed Description

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.

Public Member Functions

 ValueComparePredicate (const ValueComparePredicate &)=default
ValueComparePredicateoperator= (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

Constructor & Destructor Documentation

◆ ValueComparePredicate() [1/2]

ValueComparePredicate ( const ValueComparePredicate< T, COMPARE > &  )

◆ ValueComparePredicate() [2/2]

ValueComparePredicate ( const T &  valueIn,
const COMPARE &  compIn 

Member Function Documentation

◆ operator=()

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

◆ operator()()

Bool operator() ( const U &  other) const

Member Data Documentation

◆ value

const T& value

◆ comp

const COMPARE& comp