Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/ScopeExit.h |
Include | #include "Misc/ScopeExit.h" |
Syntax
template<typename FuncType>
class TScopeGuard
Remarks
Not meant for direct consumption : use ON_SCOPE_EXIT instead.
RAII class that calls a lambda when it is destroyed.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TScopeGuard
(
FuncType&& InFunc |
Given a lambda, constructs an RAII scope guard. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~TScopeGuard () |
Causes the lambda to be executed. |