mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-17 16:28:06 +03:00
AK: Add a 'SpecializationOf' concept
The counterpart to the IsSpecializationOf<...> template.
This commit is contained in:
parent
bc38155b9c
commit
7a58c510e5
Notes:
sideshowbarker
2024-07-17 18:45:24 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/7a58c510e5 Pull-request: https://github.com/SerenityOS/serenity/pull/12523 Reviewed-by: https://github.com/IdanHo ✅
@ -33,6 +33,9 @@ concept Enum = IsEnum<T>;
|
||||
template<typename T, typename U>
|
||||
concept SameAs = IsSame<T, U>;
|
||||
|
||||
template<typename T, template<typename...> typename S>
|
||||
concept SpecializationOf = IsSpecializationOf<T, S>;
|
||||
|
||||
template<typename T>
|
||||
concept AnyString = Detail::IsConstructible<StringView, T>;
|
||||
|
||||
@ -112,5 +115,6 @@ using AK::Concepts::IteratorFunction;
|
||||
using AK::Concepts::IteratorPairWith;
|
||||
using AK::Concepts::SameAs;
|
||||
using AK::Concepts::Signed;
|
||||
using AK::Concepts::SpecializationOf;
|
||||
using AK::Concepts::Unsigned;
|
||||
using AK::Concepts::VoidFunction;
|
||||
|
Loading…
Reference in New Issue
Block a user