| FNoncopyable
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/ScopeExit.h |
Include |
#include "Misc/ScopeExit.h" |
template<typename FuncType>
class TScopeGuard : public FNoncopyable
Not meant for direct consumption : use ON_SCOPE_EXIT instead.
RAII class that calls a lambda when it is destroyed.
Name | Description | |
---|---|---|
|
TScopeGuard ( |
Given a lambda, constructs an RAII scope guard. |
|
TScopeGuard ( |
This constructor needs to be available for the code to compile. |
Name | Description | |
---|---|---|
|
~TScopeGuard() |
Causes. |