14#include "CoreMinimal.h"
16#include "HAL/MallocAnsi.h"
31 template <
typename T,
typename... Args>
32 T*
New(Args&&... args)
34 T* result =
static_cast<T*
>(AnsiMalloc(
sizeof(T),
alignof(T)));
35 return new (result) T(
FWD(args)...);
#define FWD(...)
Shorten forwarding expression with this macro so one may not need to specify explicit type.
Epic Games may not agree with standards because they know better, but sometimes we have to bare conse...
void Delete(T *ptr)
Force using the ANSI memory release behavior, instead of the Unreal default.
T * New(Args &&... args)
Force using the ANSI memory allocation behavior, instead of the Unreal default.