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 ;