1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:57:44 +00:00

AK: Add the concept of hash-compatible types

This commit is contained in:
Hendiadyoin1 2021-11-07 14:50:41 +01:00 committed by Ali Mohammad Pur
parent 92e824afa1
commit c8bee92fb9
3 changed files with 16 additions and 0 deletions

View file

@ -36,6 +36,9 @@ concept SameAs = IsSame<T, U>;
template<typename T>
concept AnyString = Detail::IsConstructible<StringView, T>;
template<typename T, typename U>
concept HashCompatible = IsHashCompatible<Detail::Decay<T>, Detail::Decay<U>>;
// FIXME: remove once Clang formats these properly.
// clang-format off
template<typename Func, typename... Args>