muu/scope_guard.h file

Contains the definition of muu::scope_guard.

Namespaces

namespace muu
The root namespace for all muu functions and types.

Classes

template <typename T>
class muu::scope_guard
Performs actions when going out of scope.
template <typename T>
class muu::scope_fail
Performs actions when going out of scope due to an exception being thrown.
template <typename T>
class muu::scope_success
Performs actions when going out of scope only if no exceptions have been thrown.