diff options
Diffstat (limited to 'src/mongo/util/string_map.h')
| -rw-r--r-- | src/mongo/util/string_map.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/util/string_map.h b/src/mongo/util/string_map.h index ee3bf8da366..2285a3d630b 100644 --- a/src/mongo/util/string_map.h +++ b/src/mongo/util/string_map.h @@ -33,7 +33,6 @@ #include <absl/container/flat_hash_set.h> #include "mongo/base/string_data.h" -#include "mongo/stdx/trusted_hasher.h" #include "mongo/util/assert_util.h" namespace mongo { @@ -119,11 +118,4 @@ using StringDataMap = absl::flat_hash_map<StringData, V, StringMapHasher, String using StringDataSet = absl::flat_hash_set<StringData, StringMapHasher, StringMapEq>; -// StringMapHasher is a trusted hasher, no need to wrap in a secondary layer of hashing when used in -// stdx unordered containers. -template <> -struct IsTrustedHasher<StringMapHasher, std::string> : std::true_type {}; -template <> -struct IsTrustedHasher<StringMapHasher, StringData> : std::true_type {}; - } // namespace mongo |
