Scope guard specialization that does not invoke its exit function when construction fails.

Synopsis

Declared in <beman/scope/scope.hpp>

template<class ScopeExitFunc>
class scope_guard<ScopeExitFunc, void, exception_during_construction_behaviour::dont_invoke_exit_func>;

Member Functions

Name

Description

scope_guard [constructor] [deleted]

Constructs a guard from an exit function.

~scope_guard [destructor]

Invokes the exit function on destruction.

operator= [deleted]

Assignment operators