mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
AK: Add IsMemberPointer
to StdLibExtraDetails.h
Does exactly what it says on the tin.
This commit is contained in:
parent
7fcedae610
commit
0d1ba5c37d
Notes:
github-actions[bot]
2025-04-23 03:21:00 +00:00
Author: https://github.com/yyny
Commit: 0d1ba5c37d
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 ✅
1 changed files with 10 additions and 0 deletions
|
@ -91,6 +91,15 @@ inline constexpr bool __IsPointerHelper<T*> = true;
|
|||
template<class T>
|
||||
inline constexpr bool IsPointer = __IsPointerHelper<RemoveCV<T>>;
|
||||
|
||||
template<class T>
|
||||
inline constexpr bool __IsMemberPointer = false;
|
||||
|
||||
template<class T, class C>
|
||||
inline constexpr bool __IsMemberPointer<T C::*> = true;
|
||||
|
||||
template<class T>
|
||||
inline constexpr bool IsMemberPointer = __IsMemberPointer<RemoveCV<T>>;
|
||||
|
||||
template<class>
|
||||
inline constexpr bool IsFunction = false;
|
||||
template<class Ret, class... Args>
|
||||
|
@ -683,6 +692,7 @@ using AK::Detail::IsFundamental;
|
|||
using AK::Detail::IsHashCompatible;
|
||||
using AK::Detail::IsIntegral;
|
||||
using AK::Detail::IsLvalueReference;
|
||||
using AK::Detail::IsMemberPointer;
|
||||
using AK::Detail::IsMoveAssignable;
|
||||
using AK::Detail::IsMoveConstructible;
|
||||
using AK::Detail::IsNullPointer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue