Go to the source code of this file.
|
template<typename T > |
FORCEINLINE bool | operator== (TYPE_OF_NULLPTR, const TUniquePtr< T > &Rhs) |
|
template<typename T > |
FORCEINLINE bool | operator!= (TYPE_OF_NULLPTR, const TUniquePtr< T > &Rhs) |
|
template<typename T , typename... TArgs> |
FORCEINLINE TEnableIf<!TIsArray< T >::Value, TUniquePtr< T > >::Type | MakeUnique (TArgs &&... Args) |
|
template<typename T , typename... TArgs> |
FORCEINLINE TEnableIf<!TIsArray< T >::Value, TUniquePtr< T > >::Type | MakeUniqueForOverwrite () |
|
template<typename T > |
FORCEINLINE TEnableIf< TIsUnboundedArray< T >::Value, TUniquePtr< T > >::Type | MakeUnique (SIZE_T Size) |
|
template<typename T > |
FORCEINLINE TEnableIf< TIsUnboundedArray< T >::Value, TUniquePtr< T > >::Type | MakeUniqueForOverwrite (SIZE_T Size) |
|
template<typename T , typename... TArgs> |
TEnableIf< TIsBoundedArray< T >::Value, TUniquePtr< T > >::Type | MakeUnique (TArgs &&... Args)=delete |
|
◆ MakeUnique() [1/3]
Allocates a new array of type T with the given size and returns it as a TUniquePtr. Only enabled for array-type TUniquePtrs. Elements are value-initialized, which will call a user-defined default constructor if it exists, but causes trivial types to be zeroed.
- Parameters
-
Size | The size of the array to allocate. |
- Returns
- A TUniquePtr which points to a newly-constructed T array of the specified Size.
Definition at line 830 of file UniquePtr.h.
◆ MakeUnique() [2/3]
Allocates a new object of type T with the given arguments and returns it as a TUniquePtr. Disabled for array-type TUniquePtrs. The object is value-initialized, which will call a user-defined default constructor if it exists, but a trivial type will be zeroed.
- Parameters
-
Args | The arguments to pass to the constructor of T. |
- Returns
- A TUniquePtr which points to a newly-constructed T with the specified Args.
Definition at line 802 of file UniquePtr.h.
◆ MakeUnique() [3/3]
Overload to cause a compile error when MakeUnique<T[N]> is attempted. Use MakeUnique<T>(N) instead.
Allocates a new object of type T with the given arguments and returns it as a TUniquePtr. Disabled for array-type TUniquePtrs. The object is value-initialized, which will call a user-defined default constructor if it exists, but a trivial type will be zeroed.
- Parameters
-
Args | The arguments to pass to the constructor of T. |
- Returns
- A TUniquePtr which points to a newly-constructed T with the specified Args.
Definition at line 802 of file UniquePtr.h.
◆ MakeUniqueForOverwrite() [1/2]
Allocates a new object of type T with the given arguments and returns it as a TUniquePtr. Disabled for array-type TUniquePtrs. The object is default-initialized, which will call a user-defined default constructor if it exists, but a trivial type will be uninitialized.
- Parameters
-
Args | The arguments to pass to the constructor of T. |
- Returns
- A TUniquePtr which points to a newly-constructed T with the specified Args.
Definition at line 816 of file UniquePtr.h.
◆ MakeUniqueForOverwrite() [2/2]
Allocates a new array of type T with the given size and returns it as a TUniquePtr. Only enabled for array-type TUniquePtrs. Elements are default-initialized, which will call a user-defined default constructor if it exists, but causes trivial types to be left uninitialized.
- Parameters
-
Size | The size of the array to allocate. |
- Returns
- A TUniquePtr which points to a newly-constructed T array of the specified Size.
Definition at line 845 of file UniquePtr.h.
◆ operator!=()
◆ operator==()
◆ TIsTUniquePtr_V
◆ TIsTUniquePtr_V< const TUniquePtr< T, Deleter > >
◆ TIsTUniquePtr_V< const volatile TUniquePtr< T, Deleter > >
◆ TIsTUniquePtr_V< TUniquePtr< T, Deleter > >
◆ TIsTUniquePtr_V< volatile TUniquePtr< T, Deleter > >