blob: d6f427f4a70b0939034649b3f88a7385a16b03e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// -*- C++ -*-
#include "ace/ACE.h"
#include "ace/String_Base.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE unsigned long
ACE_Hash<ACE_CString>::operator () (const ACE_CString &t) const
{
return t.hash ();
}
ACE_INLINE int
ACE_Equal_To<ACE_CString>::operator () (const ACE_CString &lhs,
const ACE_CString &rhs) const
{
return lhs == rhs;
}
ACE_INLINE int
ACE_Less_Than<ACE_CString>::operator () (const ACE_CString &lhs,
const ACE_CString &rhs) const
{
return (lhs < rhs);
}
ACE_INLINE unsigned long
ACE_Hash<std::string>::operator () (const std::string &t) const
{
return ACE::hash_pjw (t.c_str (), t.length ());
}
ACE_INLINE int
ACE_Equal_To<std::string>::operator () (const std::string &lhs,
const std::string &rhs) const
{
return lhs == rhs;
}
ACE_INLINE int
ACE_Less_Than<std::string>::operator () (const std::string &lhs,
const std::string &rhs) const
{
return (lhs < rhs);
}
#if defined (ACE_USES_WCHAR)
ACE_INLINE unsigned long
ACE_Hash<ACE_WString>::operator () (const ACE_WString &t) const
{
return t.hash ();
}
ACE_INLINE int
ACE_Equal_To<ACE_WString>::operator () (const ACE_WString &lhs,
const ACE_WString &rhs) const
{
return lhs == rhs;
}
ACE_INLINE int
ACE_Less_Than<ACE_WString>::operator () (const ACE_WString &lhs,
const ACE_WString &rhs) const
{
return (lhs < rhs);
}
#endif /*ACE_USES_WCHAR*/
ACE_END_VERSIONED_NAMESPACE_DECL
|