Navigation
API > API/Runtime > API/Runtime/Core
Can be used as a wrapper over non-copyable objects (i.e. FCriticalSection) if you still want the class containing your object to keep its copyable property without compromising integrity of the object that doesn't support being copied. It makes each TDontCopy member of a class an exclusive entity of that class.
| Name | TDontCopy |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/DontCopy.h |
| Include Path | #include "Templates/DontCopy.h" |
Syntax
template<typename T>
struct TDontCopy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TDontCopy () |
Templates/DontCopy.h | ||
| Templates/DontCopy.h | |||
| Templates/DontCopy.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TDontCopy() |
Templates/DontCopy.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Value | T | Templates/DontCopy.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & Get () |
Templates/DontCopy.h | ||
const T & Get () |
Templates/DontCopy.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & operator* () |
Templates/DontCopy.h | ||
const T & operator* () |
Templates/DontCopy.h | ||
| Templates/DontCopy.h | |||
| Templates/DontCopy.h | |||
T * operator-> () |
Templates/DontCopy.h | ||
const T * operator-> () |
Templates/DontCopy.h |