mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-18 17:04:40 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
#include "search/token_range.hpp"
|
||||
|
||||
#include <sstream>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
namespace search
|
||||
{
|
||||
@@ -15,7 +16,7 @@ namespace
|
||||
// All synonyms should be lowercase.
|
||||
|
||||
/// @todo These should check the map language and use only the corresponding translation.
|
||||
unordered_map<string, vector<string>> const kSynonyms = {
|
||||
ankerl::unordered_dense::map<string, vector<string>> const kSynonyms = {
|
||||
/// @todo Should process synonyms with errors like "blvrd" -> "blvd".
|
||||
/// @see HouseOnStreetSynonymsWithMisprints test.
|
||||
{"10a", {"décima"}},
|
||||
|
||||
Reference in New Issue
Block a user