diff options
author | David Storch <david.storch@10gen.com> | 2016-09-01 12:00:47 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-09-08 22:43:36 -0400 |
commit | 0f695019bd0b736e0aac0c510290175f0ec8f274 (patch) | |
tree | 0a7e318bbb2753e2ac082e799a940d2c62125e72 /src/mongo/bson/bson_comparator_interface_base.h | |
parent | f0df1d05b6098bfc01d0351e6867f044542d3b39 (diff) | |
download | mongo-0f695019bd0b736e0aac0c510290175f0ec8f274.tar.gz |
SERVER-25865 stdx::unordered_map and stdx::unordered_set
On Windows, these are aliases for boost containers. On
other platforms they are aliases for std containers.
Diffstat (limited to 'src/mongo/bson/bson_comparator_interface_base.h')
-rw-r--r-- | src/mongo/bson/bson_comparator_interface_base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/bson/bson_comparator_interface_base.h b/src/mongo/bson/bson_comparator_interface_base.h index eba3a9a36d7..461199f6431 100644 --- a/src/mongo/bson/bson_comparator_interface_base.h +++ b/src/mongo/bson/bson_comparator_interface_base.h @@ -31,10 +31,10 @@ #include <initializer_list> #include <map> #include <set> -#include <unordered_map> -#include <unordered_set> #include "mongo/base/disallow_copying.h" +#include "mongo/stdx/unordered_map.h" +#include "mongo/stdx/unordered_set.h" #include "mongo/util/assert_util.h" namespace mongo { @@ -117,13 +117,13 @@ public: using Set = std::set<T, LessThan>; - using UnorderedSet = std::unordered_set<T, Hasher, EqualTo>; + using UnorderedSet = stdx::unordered_set<T, Hasher, EqualTo>; template <typename ValueType> using Map = std::map<T, ValueType, LessThan>; template <typename ValueType> - using UnorderedMap = std::unordered_map<T, ValueType, Hasher, EqualTo>; + using UnorderedMap = stdx::unordered_map<T, ValueType, Hasher, EqualTo>; virtual ~BSONComparatorInterfaceBase() = default; |