mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-01 10:33:45 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
/// @name Declarations.
|
||||
//@{
|
||||
template <typename T>
|
||||
@@ -65,9 +65,9 @@ template <typename T>
|
||||
inline std::string DebugPrint(std::unique_ptr<T> const & v);
|
||||
|
||||
template <class Key, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>>
|
||||
inline std::string DebugPrint(std::unordered_set<Key, Hash, Pred> const & v);
|
||||
inline std::string DebugPrint(ankerl::unordered_dense::set<Key, Hash, Pred> const & v);
|
||||
template <class Key, class T, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>>
|
||||
inline std::string DebugPrint(std::unordered_map<Key, T, Hash, Pred> const & v);
|
||||
inline std::string DebugPrint(ankerl::unordered_dense::map<Key, T, Hash, Pred> const & v);
|
||||
//@}
|
||||
|
||||
template <typename T>
|
||||
@@ -234,13 +234,13 @@ inline std::string DebugPrint(std::initializer_list<T> const & v)
|
||||
}
|
||||
|
||||
template <class Key, class Hash, class Pred>
|
||||
inline std::string DebugPrint(std::unordered_set<Key, Hash, Pred> const & v)
|
||||
inline std::string DebugPrint(ankerl::unordered_dense::set<Key, Hash, Pred> const & v)
|
||||
{
|
||||
return DebugPrintSequence(v.begin(), v.end());
|
||||
}
|
||||
|
||||
template <class Key, class T, class Hash, class Pred>
|
||||
inline std::string DebugPrint(std::unordered_map<Key, T, Hash, Pred> const & v)
|
||||
inline std::string DebugPrint(ankerl::unordered_dense::map<Key, T, Hash, Pred> const & v)
|
||||
{
|
||||
return DebugPrintSequence(v.begin(), v.end());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user