diff options
author | hillj <hillj@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-01-03 14:32:53 +0000 |
---|---|---|
committer | hillj <hillj@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-01-03 14:32:53 +0000 |
commit | d7c4a70d9cc646b879541d0b687cdfefa76cf4d2 (patch) | |
tree | 74390eed397c642d7f6b73a4cc4e80a98167cace /ACE/tests/Hash_Map_Manager_Test.cpp | |
parent | 779195425d2a05e1a1d637be16d49a716d1b2292 (diff) | |
download | ATCD-d7c4a70d9cc646b879541d0b687cdfefa76cf4d2.tar.gz |
Thu Jan 3 14:29:28 UTC 2008 James H. Hill <hillj@isis.vanderbilt.edu>
Diffstat (limited to 'ACE/tests/Hash_Map_Manager_Test.cpp')
-rw-r--r-- | ACE/tests/Hash_Map_Manager_Test.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/ACE/tests/Hash_Map_Manager_Test.cpp b/ACE/tests/Hash_Map_Manager_Test.cpp index 7c5e46b8260..2217c786bfd 100644 --- a/ACE/tests/Hash_Map_Manager_Test.cpp +++ b/ACE/tests/Hash_Map_Manager_Test.cpp @@ -66,6 +66,24 @@ typedef ACE_Hash_Map_Reverse_Iterator_Ex<const ACE_TCHAR *, ACE_Equal_To<const ACE_TCHAR *>, ACE_Null_Mutex> HASH_STRING_REVERSE_ITER; + +struct Key_Equal_To +{ + Key_Equal_To (const ACE_TCHAR * key) + : key_ (key) + { + + } + + bool operator () (const HASH_STRING_MAP::value_type & entry) + { + return ACE_OS::strcmp (entry.ext_id_, this->key_) == 0; + } + + // Key of interest. + const ACE_TCHAR * key_; +}; + struct String_Table { const ACE_TCHAR *key_; @@ -184,23 +202,6 @@ int test_two_allocators () return 0; } -struct Key_Equal_To -{ - Key_Equal_To (const ACE_TCHAR * key) - : key_ (key) - { - - } - - bool operator () (const HASH_STRING_MAP::value_type & entry) - { - return ACE_OS::strcmp (entry.ext_id_, this->key_) == 0; - } - - // Key of interest. - const ACE_TCHAR * key_; -}; - static void print_value (const HASH_STRING_MAP::value_type & entry) { |