Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UniquePtr.h |
Include |
#include "Templates/UniquePtr.h" |
template<typename T, typename... TArgs>
TEnableIf< TIsBoundedArray< T >::Value, TUniquePtr< T > >::Type MakeUnique
(
TArgs &&... Args
)
Overload to cause a compile error when MakeUnique
Allocates a new object of type T with the given arguments and returns it as a TUniquePtr. Disabled for array-type TUniquePtrs.
A TUniquePtr which points to a newly-constructed T with the specified Args.
Parameter |
Description |
---|---|
Args |
The arguments to pass to the constructor of T. |