/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h
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:TGuardValueGuardSomeBool(bSomeBool, false); // Sets bSomeBool to false, and restores it in dtor.
template<typename RefType, typename AssignedType> struct TGuardValue : private [FNoncopyable](API\Runtime\Core\Templates\FNoncopyable)