mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03: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
@ -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 New Issue
Block a user