Generalized scope guard template
Synopsis
Declared in <beman/scope/scope.hpp>
template<
class ScopeExitFunc,
class InvokeChecker,
exception_during_construction_behaviour ConstructionExceptionBehavior>
class scope_guard<ScopeExitFunc, InvokeChecker, ConstructionExceptionBehavior>;
Member Functions
Name |
Description |
|
Constructors |
|
Invokes the exit function when the checker says the guard is still active. |
|
Assignment operators |
Returns the invocation checker stored by this guard. |
|
Disables invocation of the exit function for this guard. |