diff --git a/AK/Concepts.h b/AK/Concepts.h index 6368310bfa..f3966a1e84 100644 --- a/AK/Concepts.h +++ b/AK/Concepts.h @@ -45,6 +45,9 @@ concept OneOfIgnoringCV = IsOneOfIgnoringCV; template typename S> concept SpecializationOf = IsSpecializationOf; +template +concept DerivedFrom = IsBaseOf; + template concept AnyString = IsConstructible; @@ -136,6 +139,7 @@ namespace AK { #endif using AK::Concepts::Arithmetic; using AK::Concepts::ArrayLike; +using AK::Concepts::DerivedFrom; using AK::Concepts::Enum; using AK::Concepts::FallibleFunction; using AK::Concepts::FloatingPoint;