Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ScopedBool Class Reference

RAII wrapper that sets a bool to true on construction and false on destruction. More...

#include <src/utils/raii_utils.h>

Public Member Functions

 ScopedBool (bool &flag)
 ScopedBool (const ScopedBool &)=delete
ScopedBooloperator= (const ScopedBool &)=delete
 ScopedBool (ScopedBool &&)=delete
ScopedBooloperator= (ScopedBool &&)=delete

Detailed Description

RAII wrapper that sets a bool to true on construction and false on destruction.

Definition at line 12 of file raii_utils.h.

Constructor & Destructor Documentation

◆ ScopedBool()

ScopedBool::ScopedBool ( bool & flag)
inlineexplicit

Definition at line 15 of file raii_utils.h.

◆ ~ScopedBool()

ScopedBool::~ScopedBool ( )
inline

Definition at line 20 of file raii_utils.h.


The documentation for this class was generated from the following file: