[+] AuAlignTo

This commit is contained in:
Reece Wilson 2023-02-05 14:45:32 +00:00
parent c82dd26f03
commit 16edbb6064

View File

@ -387,3 +387,14 @@ struct AuCallable : decltype(_audetail::IsCallable<Func, Params...>(0))
template <class F, class... Args>
constexpr auto AuIsCallable_v = AuCallable<F, Args...>::value;
template <AuUInt uSize, class T>
struct
#if defined(AURORA_COMPILER_MSVC)
__declspec(align(uSize))
#else
__attribute__((aligned(uSize)))
#endif
AuAlignTo : T
{
};