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
parent 1e302de1d6
commit c03b0fb91b

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>
@ -677,6 +686,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;