summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-02-13 14:09:32 -0500
committerADAM David Alan Martin <adam.martin@10gen.com>2018-02-14 15:57:45 -0500
commit060e32706980ffc84aac250022d55f92afcffa69 (patch)
treeb179eee919fd60d08c0a1cfbef716b31a7db9925 /src/mongo/db/fts
parent8b6a6266458cfd065cb0133a909bae856e417882 (diff)
downloadmongo-060e32706980ffc84aac250022d55f92afcffa69.tar.gz
SERVER-33275 Remove `platform/unordered_`* headers
These headers date from before C++11 support and the `::mongo::stdx::` namespace. They can be removed and uses of the names therein can be changed to `::mongo::stdx::unordered_`* forms.
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r--src/mongo/db/fts/fts_spec.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/fts/fts_spec.h b/src/mongo/db/fts/fts_spec.h
index 8cd293e70cf..01390cc90b6 100644
--- a/src/mongo/db/fts/fts_spec.h
+++ b/src/mongo/db/fts/fts_spec.h
@@ -1,5 +1,3 @@
-// fts_spec.h
-
/**
* Copyright (C) 2012 10gen Inc.
*
@@ -40,7 +38,7 @@
#include "mongo/db/fts/stemmer.h"
#include "mongo/db/fts/stop_words.h"
#include "mongo/db/fts/tokenizer.h"
-#include "mongo/platform/unordered_map.h"
+#include "mongo/stdx/unordered_map.h"
#include "mongo/util/string_map.h"
namespace mongo {
@@ -52,7 +50,7 @@ extern const double MAX_WORD_WEIGHT;
extern const double DEFAULT_WEIGHT;
typedef std::map<std::string, double> Weights; // TODO cool map
-typedef unordered_map<std::string, double> TermFrequencyMap;
+typedef stdx::unordered_map<std::string, double> TermFrequencyMap;
struct ScoreHelperStruct {
ScoreHelperStruct() : freq(0), count(0), exp(0) {}
@@ -186,5 +184,5 @@ private:
// Suffix compound key - used for covering index behavior
std::vector<std::string> _extraAfter;
};
-}
-}
+} // namespace fts
+} // namespace mongo