Class storing a callable object and an instance of on_scope_exit. More...
#include <eagine/scope_exit.hpp>
Public Member Functions | |
func_on_scope_exit (Func func) | |
Initialization from the specified callable object. | |
void | cancel () noexcept |
Cancels this on scope exit action. | |
Class storing a callable object and an instance of on_scope_exit.
Func | type of the callable function object. |
This class stores a copy of the specified callable object and an instance of on_scope_exit referencing and invoking the callable when desctoyed.