UCommon
ucommon::toggle Class Reference

Automatically toggle a bool on each reference. More...

#include <counter.h>

Public Member Functions

bool get (void)
 
 operator bool ()
 
bool operator* ()
 
void operator= (bool v)
 

Detailed Description

Automatically toggle a bool on each reference.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 131 of file counter.h.

Constructor & Destructor Documentation

◆ toggle()

ucommon::toggle::toggle ( )
inline

Definition at line 137 of file counter.h.

Member Function Documentation

◆ operator bool()

ucommon::toggle::operator bool ( )
inline

Definition at line 151 of file counter.h.

◆ operator*()

bool ucommon::toggle::operator* ( )
inline

Definition at line 143 of file counter.h.

◆ operator=()

void ucommon::toggle::operator= ( bool v)
inline

Definition at line 147 of file counter.h.


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