![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <ScopeGuard.h>
Public Member Functions | |
ScopeGuard (Function &&function) | |
void | dismiss () |
~ScopeGuard () noexcept | |
ScopeGuard (Function &&function) | |
void | dismiss () |
~ScopeGuard () noexcept | |
ScopeGuard (Function &&function) | |
void | dismiss () |
~ScopeGuard () noexcept | |
Dismissable scope guard. Function
must be callable and take no parameters. Unless dissmiss()
is called, the callable is executed upon destruction of ScopeGuard
.
Example:
auto guard = makeScopeGuard([&] { cleanup(); });
Dismissable scope guard. Function
must be callable and take no parameters. Unless dismiss()
is called, the callable is executed upon destruction of ScopeGuard
.
Example:
auto guard = makeScopeGuard([&] { cleanup(); });
|
inlineexplicit |
|
inlinenoexcept |
|
inlineexplicit |
|
inlinenoexcept |
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |