8#ifndef SEN_CORE_BASE_SCOPE_GUARD_H
9#define SEN_CORE_BASE_SCOPE_GUARD_H
39 template <
class InputF>
40 friend auto makeScopeGuard(InputF&& f);
63template <
typename InputF>
Here we define a set of template meta-programming helpers to let the compiler take some decisions bas...
Runs the function object F on destruction.
Definition scope_guard.h:26
~ScopeGuard() noexcept
Will trigger the given callback.
Definition scope_guard.h:34
auto makeScopeGuard(F &&f)
Makes scope guard from a callable taking no arguments.
ScopeGuard(F) -> ScopeGuard< F >