mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -7,10 +7,11 @@
|
||||
#include <functional>
|
||||
#include <iterator>
|
||||
#include <list>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
namespace tesselator
|
||||
{
|
||||
typedef std::vector<m2::PointD> PointsT;
|
||||
@@ -71,7 +72,7 @@ class TrianglesInfo
|
||||
size_t operator()(std::pair<T1, T2> const & p) const { return math::Hash(p.first, p.second); }
|
||||
};
|
||||
|
||||
using TNeighbours = std::unordered_map<std::pair<int, int>, int, HashPair<int, int>>;
|
||||
using TNeighbours = ankerl::unordered_dense::map<std::pair<int, int>, int, HashPair<int, int>>;
|
||||
TNeighbours m_neighbors;
|
||||
|
||||
bool AddNeighbour(int p1, int p2, int trg);
|
||||
|
||||
Reference in New Issue
Block a user