CAF 0.17.6
|
A lightweight scope guard implementation. More...
#include <scope_guard.hpp>
Public Member Functions | |
scope_guard (Fun f) | |
scope_guard (scope_guard &&other) | |
void | disable () |
Disables this guard, i.e., the guard does not run its cleanup code as it goes out of scope. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class Fun > | |
scope_guard< Fun > | make_scope_guard (Fun f) |
Creates a guard that executes f as soon as it goes out of scope. | |
A lightweight scope guard implementation.