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:
parent
92e824afa1
commit
c8bee92fb9
3 changed files with 16 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue