1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

AK: Add IsMemberPointer to StdLibExtraDetails.h

Does exactly what it says on the tin.
This commit is contained in:
Jonne Ransijn 2025-04-11 15:09:02 +02:00 committed by Andrew Kaster
parent 7fcedae610
commit 0d1ba5c37d
Notes: github-actions[bot] 2025-04-23 03:21:00 +00:00

View file

@ -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;