2 #ifndef __HASH_MAP_HASH_H_
3 #define __HASH_MAP_HASH_H_
6 // Key type that we are going to use.
10 KeyType () : val_(0) {}
12 KeyType (int i
) : val_(i
) {}
14 KeyType (const KeyType
& kt
) { this->val_
= kt
.val_
; }
16 operator int () const { return val_
; }
22 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
24 // Specialize the hash functor.
26 class ACE_Hash
<KeyType
>
29 u_long
operator() (const KeyType kt
) const
37 // Specialize the equality functor.
39 class ACE_Equal_To
<KeyType
>
42 int operator() (const KeyType
& kt1
,
43 const KeyType
& kt2
) const
47 return (val1
== val2
);
51 ACE_END_VERSIONED_NAMESPACE_DECL
55 #endif /* __HASH_MAP_HASH_H_ */