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:
parent
4a99170cd2
commit
9b0d90a71d
3 changed files with 8 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue