Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
ScopeExitSupport::TScopeGuard< FuncType > Class Template Reference

#include <ScopeExit.h>

Public Member Functions

 TScopeGuard (FuncType &&InFunc)
 
 ~TScopeGuard ()
 

Private Member Functions

 TScopeGuard (TScopeGuard &&)=delete
 
 TScopeGuard (const TScopeGuard &)=delete
 
TScopeGuardoperator= (TScopeGuard &&)=delete
 
TScopeGuardoperator= (const TScopeGuard &)=delete
 

Private Attributes

FuncType Func
 

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.

Definition at line 13 of file ScopeExit.h.

Constructor & Destructor Documentation

◆ TScopeGuard() [1/3]

template<typename FuncType >
ScopeExitSupport::TScopeGuard< FuncType >::TScopeGuard ( TScopeGuard< FuncType > && )
privatedelete

◆ TScopeGuard() [2/3]

template<typename FuncType >
ScopeExitSupport::TScopeGuard< FuncType >::TScopeGuard ( const TScopeGuard< FuncType > & )
privatedelete

◆ TScopeGuard() [3/3]

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

Definition at line 22 of file ScopeExit.h.

◆ ~TScopeGuard()

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

Definition at line 28 of file ScopeExit.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename FuncType >
TScopeGuard & ScopeExitSupport::TScopeGuard< FuncType >::operator= ( const TScopeGuard< FuncType > & )
privatedelete

◆ operator=() [2/2]

template<typename FuncType >
TScopeGuard & ScopeExitSupport::TScopeGuard< FuncType >::operator= ( TScopeGuard< FuncType > && )
privatedelete

Member Data Documentation

◆ Func

template<typename FuncType >
FuncType ScopeExitSupport::TScopeGuard< FuncType >::Func
private

Definition at line 35 of file ScopeExit.h.


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