30 #ifndef __FIND_KEY_PREDICATE__
31 #define __FIND_KEY_PREDICATE__
37 template <
typename T >
43 std::cout <<
"FindKeyPredicate Generic -> :" << &(v1.first) << std::endl;
65 template <
typename T1,
typename T2>
66 struct FindKeyPredicate< std::pair<T1,T2> > :
public std::unary_function < std::pair<T1,T2>, bool >
70 std::cout <<
"FindKeyPredicate 2-Initializing with value " <<
_value << std::endl;
73 inline bool operator()(
const std::pair<T1,T2> & v1)
const {
74 std::cout <<
"FindKeyPredicate 2-> :" << v1.first << std::endl;
75 return v1.first ==
_value ;
bool operator()(const std::pair< T1, T2 > &v1) const
Definition: FindKeyPredicate.hxx:73
FindKeyPredicate(const T1 &value)
Definition: FindKeyPredicate.hxx:69
T1 _value
Definition: FindKeyPredicate.hxx:68
Definition: FindKeyPredicate.hxx:39
FindKeyPredicate(const T &value)
Definition: FindKeyPredicate.hxx:41
T _value
Definition: FindKeyPredicate.hxx:40
bool operator()(const T &v1, const T &v2) const
Definition: FindKeyPredicate.hxx:42