Go to the source code of this file.
◆ 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.
◆ MakeUnique() [2/3]
template<
typename T , typename... TArgs>
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.
◆ MakeUnique() [3/3]
template<
typename T , typename... TArgs>
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.
◆ MakeUniqueForOverwrite() [1/2]
template<
typename T , typename... TArgs>
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.
◆ 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.
◆ operator!=()
◆ operator==()
◆ TIsTUniquePtr_V
Trait which determines whether or not a type is a TUniquePtr.
◆ TIsTUniquePtr_V< const TUniquePtr< T, Deleter > >
◆ TIsTUniquePtr_V< const volatile TUniquePtr< T, Deleter > >
◆ TIsTUniquePtr_V< TUniquePtr< T, Deleter > >
◆ TIsTUniquePtr_V< volatile TUniquePtr< T, Deleter > >