1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:27:44 +00:00

AK: Support using custom comparison operations for hash compatible keys

This commit is contained in:
Idan Horowitz 2022-01-29 20:01:35 +02:00
parent 4a99170cd2
commit 9b0d90a71d
3 changed files with 8 additions and 8 deletions

View file

@ -20,6 +20,8 @@ struct GenericTraits {
using ConstPeekType = T;
static constexpr bool is_trivial() { return false; }
static constexpr bool equals(const T& a, const T& b) { return a == b; }
template<Concepts::HashCompatible<T> U>
static bool equals(U const& a, T const& b) { return a == b; }
};
template<typename T>