diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-03-28 18:16:09 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-03-28 18:16:09 +0000 |
commit | 3ea578217c374faff18b10bd359f3a6d494a250c (patch) | |
tree | dc7ccdd0b4b1618e066e05f0d95ce6c66eb4eeb3 /ace/Functor_String.inl | |
parent | 3c87adfc3357e7c15e04bcc90e0cf7a33e02b14d (diff) | |
download | ATCD-3ea578217c374faff18b10bd359f3a6d494a250c.tar.gz |
ChangeLogTag:Sun Mar 28 12:14:05 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Functor_String.inl')
-rw-r--r-- | ace/Functor_String.inl | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ace/Functor_String.inl b/ace/Functor_String.inl new file mode 100644 index 00000000000..083b2f488ec --- /dev/null +++ b/ace/Functor_String.inl @@ -0,0 +1,51 @@ +/* -*- C++ -*- */ +// $Id$ + +#include "ace/ACE.h" +#include "ace/String_Base.h" + +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); +} + + +#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*/ |