[core] Switch to ankerl::unordered_dense

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
committed by Konstantin Pastbin
parent a60efa9b43
commit 969e1ef2da
281 changed files with 4381 additions and 1451 deletions

View File

@@ -12,9 +12,10 @@
#include <limits>
#include <map>
#include <memory>
#include <unordered_set>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
using namespace std;
namespace
@@ -171,7 +172,7 @@ struct ArrayTypes
deque<uint32_t> m_dequeValue;
vector<uint32_t> m_vectorValue;
map<uint32_t, uint32_t> m_mapValue;
unordered_set<uint32_t> m_unorderedSetValue;
ankerl::unordered_dense::set<uint32_t> m_unorderedSetValue;
};
} // namespace
@@ -224,7 +225,7 @@ UNIT_TEST(SerdesJsonTest)
hash<string> m_hasher;
};
unordered_set<pair<string, string>, Hasher> testValue = {{"ab", "ab"}, {"ef", "ef"}, {"cd", "cd"}};
ankerl::unordered_dense::set<pair<string, string>, Hasher> testValue = {{"ab", "ab"}, {"ef", "ef"}, {"cd", "cd"}};
TEST(TestSerDes(testValue), ());
}