mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
AK: Add IsMemberPointer
to StdLibExtraDetails.h
Does exactly what it says on the tin.
This commit is contained in:
parent
1e302de1d6
commit
c03b0fb91b
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>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue