Definition SystemConfigCommandHandler.hpp:15
ExecOnOOS(F &&f) noexcept
Construct an enabled scope guard.
Definition ExecOnOOS.hpp:75
F cb
Stored callable executed on destruction if shouldExec is true.
Definition ExecOnOOS.hpp:97
~ExecOnOOS() noexcept(std::is_nothrow_invocable_v< F >)
Destructor. Executes the stored callable if not cancelled.
Definition ExecOnOOS.hpp:86
void cancel() noexcept
Prevent execution on scope exit.
Definition ExecOnOOS.hpp:92
bool shouldExec
Whether the destructor should execute cb.
Definition ExecOnOOS.hpp:99
bool willExec() const noexcept
Return whether the callable will currently execute on scope exit.
Definition ExecOnOOS.hpp:94
ExecOnOOS(bool exec, F &&f) noexcept
Construct a scope guard.
Definition ExecOnOOS.hpp:66