summaryrefslogtreecommitdiff
path: root/ACE/tests/Hash_Map_Manager_Test.cpp
diff options
context:
space:
mode:
authorhillj <hillj@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-01-03 14:32:53 +0000
committerhillj <hillj@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-01-03 14:32:53 +0000
commitd7c4a70d9cc646b879541d0b687cdfefa76cf4d2 (patch)
tree74390eed397c642d7f6b73a4cc4e80a98167cace /ACE/tests/Hash_Map_Manager_Test.cpp
parent779195425d2a05e1a1d637be16d49a716d1b2292 (diff)
downloadATCD-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.cpp35
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)
{