FTXUI
5.0.0
C++ functional terminal UI.
|
Assign a value to a variable, reset its old value when going out of scope. More...
Public Member Functions | |
AutoReset (T *variable, T new_value) | |
AutoReset (const AutoReset &)=delete | |
AutoReset (AutoReset &&)=delete | |
AutoReset & | operator= (const AutoReset &)=delete |
AutoReset & | operator= (AutoReset &&)=delete |
~AutoReset () | |
Assign a value to a variable, reset its old value when going out of scope.
Definition at line 13 of file autoreset.hpp.
|
inline |
Definition at line 15 of file autoreset.hpp.
|
inline |
Definition at line 23 of file autoreset.hpp.