Honeycomb
0.1
Component-Model Framework
|
Run a function at scope exit. See ScopeGuard() to create. More...
#include <ScopeGuard.h>
Public Member Functions | |
ScopeGuard_ (F &&func) | |
ScopeGuard_ (ScopeGuard_ &&rhs) noexcept | |
~ScopeGuard_ () | |
void | release () |
Disengage the guard so the function isn't run at scope exit. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<class F > | |
ScopeGuard_< F > | ScopeGuard (F &&func) |
Create a scope guard of deduced type. Call with lambda: auto guard = ScopeGuard([] {...}); More... | |
Run a function at scope exit. See ScopeGuard() to create.
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
Disengage the guard so the function isn't run at scope exit.
|
related |
Create a scope guard of deduced type. Call with lambda: auto guard = ScopeGuard([] {...});