A class that sets a boolean variable to false at the end of its scope.
More...
#include <gscope.h>
A class that sets a boolean variable to false at the end of its scope.
Eg:
{
...
}
ScopeExitSetFalse(bool &bref) noexcept
Constructor.
Definition at line 79 of file gscope.h.
◆ ScopeExitSetFalse()
G::ScopeExitSetFalse::ScopeExitSetFalse |
( |
bool & |
bref | ) |
|
|
inlineexplicitnoexcept |
◆ ~ScopeExitSetFalse()
G::ScopeExitSetFalse::~ScopeExitSetFalse |
( |
| ) |
|
|
inlinenoexcept |
Destructor, sets the bound value to false.
Definition at line 139 of file gscope.h.
◆ release()
void G::ScopeExitSetFalse::release |
( |
| ) |
|
|
inlinenoexcept |
Deactivates the exit function.
Definition at line 133 of file gscope.h.
The documentation for this class was generated from the following file:
- /tmp/SBo/slackrepo.64ZNpN/build_emailrelay/emailrelay-2.5.1/src/glib/gscope.h