avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
av::EqualComparator< T > Struct Template Reference

Predicate that compares an element with a stored value. More...

#include <avutils.h>

Public Member Functions

 EqualComparator (const T &value)
 Remember the value to compare against.
bool operator() (const T &value) const
 Compare an element with the stored value.

Public Attributes

const T & value
 The value that terminates the list.

Detailed Description

template<typename T>
struct av::EqualComparator< T >

Used as the "end of list" marker by the pointer overload of guessValue().

Constructor & Destructor Documentation

◆ EqualComparator()

template<typename T>
av::EqualComparator< T >::EqualComparator ( const T & value)
inline
Parameters
valuethe value that ends the list

Member Function Documentation

◆ operator()()

template<typename T>
bool av::EqualComparator< T >::operator() ( const T & value) const
inline
Parameters
valuethe element to test
Returns
true when the element equals the stored value

The documentation for this struct was generated from the following file: