Scope guard for boolean value. More...
#include <kanzi/core/util/flag_scope_guard.hpp>
Public Member Functions | |
| FlagScopeGuard (bool &flag) | |
| Constructor. | |
| ~FlagScopeGuard () | |
| Destructor. | |
Scope guard for boolean value.
When created, sets the flag to the specified value. When destroyed, sets the flag to the opposite value.
|
inlineexplicit |
Constructor.
| flag | flag which to set and unset. |
|
inline |
Destructor.