Inviwo
0.9.10.1
Inviwo documentation
|
sets the given bool variable to true and restores its state when leaving the scope More...
#include <raiiutils.h>
Public Member Functions | |
KeepTrueWhileInScope (bool *b) | |
sets the given bool variable to true and restores its state when leaving the scope
An instance of this class will set a given bool variable to true upon construction. It restores the previous state of the bool variable when leaving the current scope.