UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ScopeExitSupport::TScopeGuard< FuncType > Class Template Reference

#include <ScopeExit.h>

Public Member Functions

 TScopeGuard (FuncType &&InFunc)
 
 ~TScopeGuard ()
 

Detailed Description

template<typename FuncType>
class ScopeExitSupport::TScopeGuard< FuncType >

Not meant for direct consumption : use ON_SCOPE_EXIT instead.

RAII class that calls a lambda when it is destroyed.

Constructor & Destructor Documentation

◆ TScopeGuard()

template<typename FuncType >
ScopeExitSupport::TScopeGuard< FuncType >::TScopeGuard ( FuncType &&  InFunc)
inlineexplicit

◆ ~TScopeGuard()

template<typename FuncType >
ScopeExitSupport::TScopeGuard< FuncType >::~TScopeGuard ( )
inline

The documentation for this class was generated from the following file: