Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
WithFlag.h File Reference

RAII-style scoped flag setter. Temporarily sets a boolean flag and restores it on destruction. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WithFlag
 Temporarily sets a boolean flag and restores it automatically. More...
 

Detailed Description

Author
Ian Archbell

Useful for suppressing behavior or toggling internal state temporarily. Pattern: WithFlag flagGuard(myFlag); // sets myFlag = true, restores original value on scope exit.

Version
0.1
Date
2025-05-01
License:\n MIT License

Definition in file WithFlag.h.