exception-safe guard around saving/restoring a value. 更多...
#include <UnrealTemplate.h>
类 TGuardValue< RefType, AssignedType > 继承关系图:Public 成员函数 | |
| FORCEINLINE const AssignedType & | operator* () const |
| Overloaded dereference operator. 更多... | |
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<bool> GuardSomeBool(bSomeBool, false); // Sets bSomeBool to false, and restores it in dtor.
|
inline |
Overloaded dereference operator.
Provides read-only access to the original value of the data being tracked by this struct