From 90ce6086c2eaf4186cbaf01a2041cdf7d1ba3bab Mon Sep 17 00:00:00 2001 From: Jordan Peck Date: Mon, 8 Apr 2024 16:55:40 +0100 Subject: [PATCH] Passthrough is_avalanching from std::hash --- include/ankerl/unordered_dense.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/ankerl/unordered_dense.h b/include/ankerl/unordered_dense.h index 2aaacd6..8372a12 100644 --- a/include/ankerl/unordered_dense.h +++ b/include/ankerl/unordered_dense.h @@ -277,6 +277,15 @@ struct hash { } }; +template +struct hash::is_avalanching> { + using is_avalanching = void; + auto operator()(T const& obj) const noexcept(noexcept(std::declval>().operator()(std::declval()))) + -> uint64_t { + return std::hash{}(obj); + } +}; + template struct hash> { using is_avalanching = void;