mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
AK: Add IsPOD<T> template to StdLibExtras
This commit is contained in:
parent
03b251a704
commit
805f8496be
Notes:
sideshowbarker
2024-07-18 02:06:44 +09:00
Author: https://github.com/linusg
Commit: 805f8496be
Pull-request: https://github.com/SerenityOS/serenity/pull/10548
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 4 additions and 0 deletions
|
@ -490,6 +490,9 @@ struct __AssertSize : TrueType {
|
|||
template<typename T, unsigned ExpectedSize>
|
||||
using AssertSize = __AssertSize<T, ExpectedSize, sizeof(T)>;
|
||||
|
||||
template<typename T>
|
||||
inline constexpr bool IsPOD = __is_pod(T);
|
||||
|
||||
template<typename T>
|
||||
inline constexpr bool IsTrivial = __is_trivial(T);
|
||||
|
||||
|
@ -589,6 +592,7 @@ using AK::Detail::IsLvalueReference;
|
|||
using AK::Detail::IsMoveAssignable;
|
||||
using AK::Detail::IsMoveConstructible;
|
||||
using AK::Detail::IsNullPointer;
|
||||
using AK::Detail::IsPOD;
|
||||
using AK::Detail::IsPointer;
|
||||
using AK::Detail::IsRvalueReference;
|
||||
using AK::Detail::IsSame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue