mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
AK: Add IsOneOfIgnoringCVReference
to StdLibExtraDetails.h
Much like `IsOneOfIgnoringCV`, some functions want to ignore both cv-qualifiers _and_ references. Add a template and concept for it.
This commit is contained in:
parent
e5d89c72a6
commit
063be28e90
Notes:
github-actions[bot]
2025-04-23 03:21:41 +00:00
Author: https://github.com/yyny
Commit: 063be28e90
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4310
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/DanShaders
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard ✅
2 changed files with 12 additions and 0 deletions
|
@ -45,6 +45,9 @@ concept OneOf = IsOneOf<U, Ts...>;
|
|||
template<typename U, typename... Ts>
|
||||
concept OneOfIgnoringCV = IsOneOfIgnoringCV<U, Ts...>;
|
||||
|
||||
template<typename U, typename... Ts>
|
||||
concept OneOfIgnoringCVReference = IsOneOfIgnoringCVReference<U, Ts...>;
|
||||
|
||||
template<typename T, template<typename...> typename S>
|
||||
concept SpecializationOf = IsSpecializationOf<T, S>;
|
||||
|
||||
|
@ -185,6 +188,7 @@ using AK::Concepts::IteratorFunction;
|
|||
using AK::Concepts::IteratorPairWith;
|
||||
using AK::Concepts::OneOf;
|
||||
using AK::Concepts::OneOfIgnoringCV;
|
||||
using AK::Concepts::OneOfIgnoringCVReference;
|
||||
using AK::Concepts::SameAs;
|
||||
using AK::Concepts::Signed;
|
||||
using AK::Concepts::SpecializationOf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue