diff options
Diffstat (limited to 'src/mongo/stdx/unordered_set.h')
-rw-r--r-- | src/mongo/stdx/unordered_set.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/mongo/stdx/unordered_set.h b/src/mongo/stdx/unordered_set.h index dc24c3e7235..d88450cce75 100644 --- a/src/mongo/stdx/unordered_set.h +++ b/src/mongo/stdx/unordered_set.h @@ -30,22 +30,15 @@ #pragma once -#if defined(_WIN32) -#include <boost/unordered_set.hpp> -#else -#include <unordered_set> -#endif +#include "mongo/stdx/trusted_hasher.h" + +#include <absl/container/node_hash_set.h> namespace mongo { namespace stdx { -#if defined(_WIN32) -using ::boost::unordered_set; // NOLINT -using ::boost::unordered_multiset; // NOLINT -#else -using ::std::unordered_set; // NOLINT -using ::std::unordered_multiset; // NOLINT -#endif +template <class Key, class Hasher = DefaultHasher<Key>, typename... Args> +using unordered_set = absl::node_hash_set<Key, EnsureTrustedHasher<Hasher, Key>, Args...>; } // namespace stdx } // namespace mongo |