RAII-style scoped flag setter. Temporarily sets a boolean flag and restores it on destruction. More...
Go to the source code of this file.
Classes | |
class | WithFlag |
Temporarily sets a boolean flag and restores it automatically. More... | |
Useful for suppressing behavior or toggling internal state temporarily. Pattern: WithFlag flagGuard(myFlag); // sets myFlag = true, restores original value on scope exit.
Definition in file WithFlag.h.