mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
AK: Introduce the DerivedFrom
concept
This commit is contained in:
parent
3750687821
commit
6c83bd8fd4
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>
|
template<typename T, template<typename...> typename S>
|
||||||
concept SpecializationOf = IsSpecializationOf<T, S>;
|
concept SpecializationOf = IsSpecializationOf<T, S>;
|
||||||
|
|
||||||
|
template<typename T, typename S>
|
||||||
|
concept DerivedFrom = IsBaseOf<S, T>;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
concept AnyString = IsConstructible<StringView, T>;
|
concept AnyString = IsConstructible<StringView, T>;
|
||||||
|
|
||||||
|
@ -136,6 +139,7 @@ namespace AK {
|
||||||
#endif
|
#endif
|
||||||
using AK::Concepts::Arithmetic;
|
using AK::Concepts::Arithmetic;
|
||||||
using AK::Concepts::ArrayLike;
|
using AK::Concepts::ArrayLike;
|
||||||
|
using AK::Concepts::DerivedFrom;
|
||||||
using AK::Concepts::Enum;
|
using AK::Concepts::Enum;
|
||||||
using AK::Concepts::FallibleFunction;
|
using AK::Concepts::FallibleFunction;
|
||||||
using AK::Concepts::FloatingPoint;
|
using AK::Concepts::FloatingPoint;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue