HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_ScopeExit< F > Class Template Reference

UT_ScopeExit which runs the given lambda on destruction. More...

#include <UT_ScopeExit.h>

Public Member Functions

 UT_ScopeExit (F &action)
 
 UT_ScopeExit (const F &&action)
 
 UT_ScopeExit (F &&action)
 
 UT_ScopeExit (UT_ScopeExit &&other)
 
 ~UT_ScopeExit ()
 

Detailed Description

template<typename F>
class UT_ScopeExit< F >

UT_ScopeExit which runs the given lambda on destruction.

Definition at line 28 of file UT_ScopeExit.h.

Constructor & Destructor Documentation

template<typename F >
UT_ScopeExit< F >::UT_ScopeExit ( F &  action)
inlineexplicit

Definition at line 31 of file UT_ScopeExit.h.

template<typename F >
UT_ScopeExit< F >::UT_ScopeExit ( const F &&  action)
inlineexplicit

Definition at line 33 of file UT_ScopeExit.h.

template<typename F >
UT_ScopeExit< F >::UT_ScopeExit ( F &&  action)
inlineexplicit

Definition at line 35 of file UT_ScopeExit.h.

template<typename F >
UT_ScopeExit< F >::UT_ScopeExit ( UT_ScopeExit< F > &&  other)
inline

Definition at line 37 of file UT_ScopeExit.h.

template<typename F >
UT_ScopeExit< F >::~UT_ScopeExit ( )
inline

Definition at line 40 of file UT_ScopeExit.h.


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