MySQL 8.0.40
Source Code Documentation
|
A RAII-style class, which sets a given boolean to true in constructor, and to false in destructor, effectively making sure that it is true for the duration of the object lifetime/scope. More...
#include <ut0bool_scope_guard.h>
Public Member Functions | |
bool_scope_guard_t (bool &active) | |
Creates the RAII guard which sets active to true for the duration of its lifetime. More... | |
~bool_scope_guard_t () | |
bool_scope_guard_t (bool_scope_guard_t const &)=delete | |
bool_scope_guard_t & | operator= (bool_scope_guard_t const &)=delete |
bool_scope_guard_t & | operator= (bool_scope_guard_t &&)=delete |
bool_scope_guard_t (bool_scope_guard_t &&old) | |
Private Attributes | |
bool * | m_active |
boolean to be manipulated, or nullptr if the object was moved from, or already destructed More... | |
A RAII-style class, which sets a given boolean to true in constructor, and to false in destructor, effectively making sure that it is true for the duration of the object lifetime/scope.
|
inlineexplicit |
Creates the RAII guard which sets active
to true for the duration of its lifetime.
[in,out] | active | the boolean which is to be manipulated |
|
inline |
|
delete |
|
inline |
|
delete |
|
delete |
|
private |
boolean to be manipulated, or nullptr if the object was moved from, or already destructed