Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Templates
Inheritance Hierarchy
- CNoncopyable
- TGuardValue
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Templates/Storage.h |
| Include | #include "uLang/Common/Templates/Storage.h" |
Syntax
template<typename RefType, typename AssignedType>
struct TGuardValue : private uLang::CNoncopyable
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 |
|||
TGuardValue
(
RefType& ReferenceValue, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~TGuardValue () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE const AssignedType & | operator* () |
Overloaded dereference operator. |