TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Finder< T, S > Struct Template Reference

#include <Util.h>

Public Member Functions

 Finder (T val, T S::*idMember)
 
bool operator() (const std::pair< int, S > &obj)
 

Public Attributes

val_
 
T S::* idMember_
 

Constructor & Destructor Documentation

template<typename T , class S >
Finder< T, S >::Finder ( val,
T S::*  idMember 
)
inline
41 : val_(val), idMember_(idMember) {}
T S::* idMember_
Definition: Util.h:39
T val_
Definition: Util.h:38

Member Function Documentation

template<typename T , class S >
bool Finder< T, S >::operator() ( const std::pair< int, S > &  obj)
inline
42 { return obj.second.*idMember_ == val_; }
T S::* idMember_
Definition: Util.h:39
T val_
Definition: Util.h:38

Member Data Documentation

template<typename T , class S >
T S::* Finder< T, S >::idMember_
template<typename T , class S >
T Finder< T, S >::val_

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