|
Util--
1.1
|
#include <utilmm/auto_flag.hh>


Public Member Functions | |
| auto_flag (bool &flag, bool init=true, bool restore_old=true) | |
| ~auto_flag () | |
| bool | get () const |
| operator safe_bool () const | |
|
inline |
Sets flag to init. On destruction, the flag will be set to either ! init if restore_old is false, or to the initial flag value if restore_old is true
|
inline |
Sets the value of the flag according to the restore_old argument of the constructor
|
inline |
Get the current value of the flag
|
inline |
1.8.6