Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
Inheritance Hierarchy
- FNoncopyable
- TOptionalGuardValue
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
| Include | #include "Templates/UnrealTemplate.h" |
Syntax
template<typename RefType, typename AssignedType>
struct TOptionalGuardValue : private FNoncopyable
Remarks
Exception-safe guard around saving/restoring a value. Commonly used to make sure a value is restored even if the code early outs in the future. Usage: TOptionalGuardValue
Constructors
| Type | Name | Description | |
|---|---|---|---|
TOptionalGuardValue
(
RefType& ReferenceValue, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Operators
| Type | Name | Description | |
|---|---|---|---|
| const AssignedType & | operator* () |
Overloaded dereference operator. |