32#ifndef ut0bool_scope_guard_h
33#define ut0bool_scope_guard_h
62 old.m_active =
nullptr;
A RAII-style class, which sets a given boolean to true in constructor, and to false in destructor,...
Definition: ut0bool_scope_guard.h:39
bool_scope_guard_t & operator=(bool_scope_guard_t const &)=delete
bool_scope_guard_t(bool_scope_guard_t &&old)
Definition: ut0bool_scope_guard.h:60
bool_scope_guard_t & operator=(bool_scope_guard_t &&)=delete
~bool_scope_guard_t()
Definition: ut0bool_scope_guard.h:51
bool_scope_guard_t(bool_scope_guard_t const &)=delete
bool * m_active
boolean to be manipulated, or nullptr if the object was moved from, or already destructed
Definition: ut0bool_scope_guard.h:42
bool_scope_guard_t(bool &active)
Creates the RAII guard which sets active to true for the duration of its lifetime.
Definition: ut0bool_scope_guard.h:48
This file contains a set of libraries providing overloads for regular dynamic allocation routines whi...
Definition: aligned_alloc.h:48