Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UniquePtr.h |
Include |
#include "Templates/UniquePtr.h" |
template<typename T>
TEnableIf< TIsUnboundedArray< T >::Value, TUniquePtr< T > >::Type MakeUnique
(
SIZE_T Size
)
Allocates a new array of type T with the given size and returns it as a TUniquePtr. Only enabled for array-type TUniquePtrs.
A TUniquePtr which points to a newly-constructed T array of the specified Size.
Parameter |
Description |
---|---|
Size |
The size of the array to allocate. |