ScopeGuard< FunctionType > Class Template Reference

Executes a given function on scope exit. More...

#include <ArmarXCore/core/util/OnScopeExit.h>

Public Member Functions

 ScopeGuard (const FunctionType &fn)
 
 ScopeGuard (FunctionType &&fn)
 
 ~ScopeGuard ()
 

Detailed Description

template<typename FunctionType>
class armarx::detail::ScopeGuard< FunctionType >

Executes a given function on scope exit.

Use with the macro ARMARX_ON_SCOPE_EXIT;

Constructor & Destructor Documentation

◆ ScopeGuard() [1/2]

template<typename FunctionType>
ScopeGuard ( const FunctionType & fn)
inlineexplicit

◆ ScopeGuard() [2/2]

template<typename FunctionType>
ScopeGuard ( FunctionType && fn)
inlineexplicit

◆ ~ScopeGuard()

template<typename FunctionType>
~ScopeGuard ( )
inline

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