ValuePredicate< T > Struct Template Reference

#include <algorithms.h>

Detailed Description

template<typename T>
struct maxon::ValuePredicate< T >

A matcher that finds the first element equal to a value.

Public Member Functions

 ValuePredicate (const ValuePredicate &)=default
 
ValuePredicateoperator= (const ValuePredicate &)=default
 
 ValuePredicate (const T &valueIn)
 
template<typename U >
Bool operator() (const U &other) const
 

Public Attributes

const T & value
 

Constructor & Destructor Documentation

◆ ValuePredicate() [1/2]

ValuePredicate ( const ValuePredicate< T > &  )
default

◆ ValuePredicate() [2/2]

ValuePredicate ( const T &  valueIn)
explicit

Member Function Documentation

◆ operator=()

ValuePredicate& operator= ( const ValuePredicate< T > &  )
default

◆ operator()()

Bool operator() ( const U &  other) const

Member Data Documentation

◆ value

const T& value