Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates
Inheritance Hierarchy
- FNoncopyable
- TGuardValue
- FNiagaraParameterStore::FScopedSuppressOnChanged
- FRigHierarchyControllerInstructionBracket
- IConcertClientPackageBridge::FScopedIgnoreLocalDiscard
- IConcertClientPackageBridge::FScopedIgnoreLocalSave
- IConcertClientTransactionBridge::FScopedIgnoreLocalTransaction
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
Include | #include "Templates/UnrealTemplate.h" |
Syntax
template<typename RefType, typename AssignedType>
struct TGuardValue : 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: TGuardValue
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TGuardValue
(
RefType& ReferenceValue, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~TGuardValue () |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const AssignedType & | operator* () |
Overloaded dereference operator. |