mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Introduce the DerivedFrom
concept
This commit is contained in:
parent
3750687821
commit
6c83bd8fd4
Notes:
sideshowbarker
2024-07-17 03:21:47 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/6c83bd8fd4 Pull-request: https://github.com/SerenityOS/serenity/pull/16355 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/sin-ack ✅ Reviewed-by: https://github.com/timschumi
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,9 @@ concept OneOfIgnoringCV = IsOneOfIgnoringCV<U, Ts...>;
|
|||
template<typename T, template<typename...> typename S>
|
||||
concept SpecializationOf = IsSpecializationOf<T, S>;
|
||||
|
||||
template<typename T, typename S>
|
||||
concept DerivedFrom = IsBaseOf<S, T>;
|
||||
|
||||
template<typename T>
|
||||
concept AnyString = IsConstructible<StringView, T>;
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue