AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
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_
 

Detailed Description

template<typename T, class S>
struct Finder< T, S >

Constructor & Destructor Documentation

◆ Finder()

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

Member Function Documentation

◆ operator()()

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

References Finder< T, S >::idMember_, and Finder< T, S >::val_.

Member Data Documentation

◆ idMember_

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

◆ val_

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