Skip to content

Commit a32be9a

Browse files
committed
Using xtd::collections::generic::dictionary instead std::unordered_map
1 parent 5fe82b2 commit a32be9a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/xtd.core/include/xtd/collections/hashtable.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ namespace xtd {
4444
/// @par Examples
4545
/// The following example shows how to create, initialize and perform various functions to a xtd::collections::hashtable and how to print out its keys and values.
4646
/// @include hashtable.cpp
47-
/// @todo Use xtd::collections::generic::dictionary <xtd::any_object, xtd::any_object> when done.
48-
//using hashtable = xtd::collections::generic::dictionary<xtd::any_object, xtd::any_object>;
49-
using hashtable = std::unordered_map<xtd::any_object, xtd::any_object, xtd::collections::generic::helpers::hasher<xtd::any_object>, xtd::collections::generic::helpers::equator<xtd::any_object>, xtd::collections::generic::helpers::allocator<std::pair<const xtd::any_object, xtd::any_object>>>;
47+
using hashtable = xtd::collections::generic::dictionary<xtd::any_object, xtd::any_object>;
5048
}
5149
}

src/xtd.core/include/xtd/collections/specialized/string_dictionary.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ namespace xtd {
2525
/// @par Library
2626
/// xtd.core
2727
/// @ingroup xtd_core specialized_collections
28-
/// @todo Use xtd::collections::generic::dictionary <xtd::string, xtd::string> when done.
29-
//using string_dictionary = xtd::collections::generic::dictionary<xtd::string, xtd::string>;
30-
using string_dictionary = std::unordered_map<xtd::string, xtd::string, xtd::collections::generic::helpers::hasher<xtd::string>, xtd::collections::generic::helpers::equator<xtd::string>, xtd::collections::generic::helpers::allocator<std::pair<const xtd::string, xtd::string>>>;
28+
using string_dictionary = xtd::collections::generic::dictionary<xtd::string, xtd::string>;
3129
}
3230
}
3331
}

0 commit comments

Comments
 (0)