mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
AK: Add IsScalar
to StdLibExtraDetails.h
This matches the behaviour of `std::is_scalar_v`
This commit is contained in:
parent
c03b0fb91b
commit
2284e96392
1 changed files with 4 additions and 0 deletions
|
@ -407,6 +407,9 @@ inline constexpr bool IsArithmetic = IsIntegral<T> || IsFloatingPoint<T>;
|
|||
template<typename T>
|
||||
inline constexpr bool IsFundamental = IsArithmetic<T> || IsVoid<T> || IsNullPointer<T>;
|
||||
|
||||
template<typename T>
|
||||
inline constexpr bool IsScalar = IsArithmetic<T> || IsEnum<T> || IsPointer<T> || IsNullPointer<T> || IsMemberPointer<T>;
|
||||
|
||||
template<typename T, T... Ts>
|
||||
struct IntegerSequence {
|
||||
using Type = T;
|
||||
|
@ -697,6 +700,7 @@ using AK::Detail::IsPointer;
|
|||
using AK::Detail::IsRvalueReference;
|
||||
using AK::Detail::IsSame;
|
||||
using AK::Detail::IsSameIgnoringCV;
|
||||
using AK::Detail::IsScalar;
|
||||
using AK::Detail::IsSigned;
|
||||
using AK::Detail::IsSpecializationOf;
|
||||
using AK::Detail::IsTemplateBaseOf;
|
||||
|
|
Loading…
Add table
Reference in a new issue