[+] AuAlignTo
This commit is contained in:
parent
c82dd26f03
commit
16edbb6064
@ -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
|
||||
{
|
||||
};
|
Loading…
Reference in New Issue
Block a user