14 ScopeGuard_(F&& func) : _func(forward<F>(func)), _engaged(true) {}
ScopeGuard_< F > ScopeGuard(F &&func)
Create a scope guard of deduced type. Call with lambda: auto guard = ScopeGuard([] {...
Definition: ScopeGuard.h:28
Inherit to declare that class is not copyable.
Definition: Meta.h:286
ScopeGuard_(F &&func)
Definition: ScopeGuard.h:14
~ScopeGuard_()
Definition: ScopeGuard.h:16
void release()
Disengage the guard so the function isn't run at scope exit.
Definition: ScopeGuard.h:19
ScopeGuard_(ScopeGuard_ &&rhs) noexcept
Definition: ScopeGuard.h:15
Run a function at scope exit. See ScopeGuard() to create.
Definition: ScopeGuard.h:11
Global Honeycomb namespace.