KiCad PCB EDA Suite
UTIL::DETAIL::equals< T > Struct Template Reference

Public Member Functions

 equals (const T &val)
bool operator() (const T &val) const

Private Attributes

const T & val_

Detailed Description

template<typename T>
struct UTIL::DETAIL::equals< T >

Definition at line 32 of file observable.cpp.

Constructor & Destructor Documentation

◆ equals()

template<typename T >
UTIL::DETAIL::equals< T >::equals ( const T &  val)

Definition at line 33 of file observable.cpp.

33 : val_( val ) {}

Member Function Documentation

◆ operator()()

template<typename T >
bool UTIL::DETAIL::equals< T >::operator() ( const T &  val) const

Definition at line 35 of file observable.cpp.

36  {
37  return val == val_;
38  }

References UTIL::DETAIL::equals< T >::val_.

Member Data Documentation

◆ val_

template<typename T >
const T& UTIL::DETAIL::equals< T >::val_

Definition at line 41 of file observable.cpp.

Referenced by UTIL::DETAIL::equals< T >::operator()().

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