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

Public Member Functions

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

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

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

Definition at line 33 of file observable.cpp.

33 : val_( val ) {}

Member Function Documentation

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

Definition at line 35 of file observable.cpp.

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

36  {
37  return val == val_;
38  }

Member Data Documentation

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

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: