hldata: comments + map->unordered_map

This commit is contained in:
Jean-Francois Dockes
2019-07-21 19:13:24 +02:00
parent d3a9ce167f
commit 6a405e2089
5 changed files with 54 additions and 33 deletions
+4 -3
View File
@@ -21,7 +21,7 @@
#include <list>
#include <set>
#include <vector>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <regex>
@@ -29,6 +29,7 @@ using std::vector;
using std::list;
using std::pair;
using std::set;
using std::unordered_map;
#include "rcldb.h"
#include "rclconfig.h"
@@ -123,8 +124,8 @@ private:
const HighlightData& m_hdata;
// group/near terms word positions.
map<string, vector<int> > m_plists;
map<int, pair<int, int> > m_gpostobytes;
unordered_map<string, vector<int> > m_plists;
unordered_map<int, pair<int, int> > m_gpostobytes;
};