LibreOffice Module comphelper (master) 1
|
ScopeGuard to ease writing exception-safe code. More...
#include <scopeguard.hxx>
Public Member Functions | |
ScopeGuard (Func &&func) | |
~ScopeGuard () | |
void | dismiss () |
Dismisses the scope guard, i.e. More... | |
Private Member Functions | |
ScopeGuard (const ScopeGuard &)=delete | |
ScopeGuard & | operator= (const ScopeGuard &)=delete |
Private Attributes | |
Func | m_func |
bool | m_bDismissed = false |
ScopeGuard to ease writing exception-safe code.
Definition at line 54 of file scopeguard.hxx.
|
inlineexplicit |
func | function object to be executed in dtor |
Definition at line 59 of file scopeguard.hxx.
|
inline |
Definition at line 61 of file scopeguard.hxx.
References comphelper::ScopeGuard< Func >::m_bDismissed, comphelper::ScopeGuard< Func >::m_func, and suppress_fun_call_w_exception.
|
privatedelete |
|
inline |
Dismisses the scope guard, i.e.
the function won't be executed.
Definition at line 71 of file scopeguard.hxx.
References comphelper::ScopeGuard< Func >::m_bDismissed.
|
privatedelete |
|
private |
Definition at line 79 of file scopeguard.hxx.
Referenced by comphelper::ScopeGuard< Func >::dismiss(), and comphelper::ScopeGuard< Func >::~ScopeGuard().
|
private |
Definition at line 78 of file scopeguard.hxx.
Referenced by comphelper::ScopeGuard< Func >::~ScopeGuard().