Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UniqueObj.h |
Include |
#include "Templates/UniqueObj.h" |
template<typename T>
class TUniqueObj
This is essentially a reference version of TUniquePtr Useful to force heap allocation of a value, e.g. in a TMap to give similar behaviour to TIndirectArray
Name | Description | |
---|---|---|
|
TUniqueObj ( |
|
|
TUniqueObj ( |
As TUniqueObj's internal pointer can never be null, we can't move that On the other hand we can call the move constructor of "T" |
|
TUniqueObj ( |
Name | Description | ||
---|---|---|---|
|
T & |
operator*() |
|
|
const T & |
operator*() |
|
|
operator= ( |
Disallow copy-assignment. |
|
|
operator= ( |
Move-assignment is implemented as swapping the internal pointer. |
|
|
operator= ( |
||
|
T * |
operator->() |
|
|
const T *... |
operator->() |