openMSX
|
Assign new value to some variable and restore the original value when this object goes out of scope. More...
#include <ScopedAssign.hh>
Public Member Functions | |
ScopedAssign (T &var_, T newValue) | |
~ScopedAssign () | |
Assign new value to some variable and restore the original value when this object goes out of scope.
Definition at line 7 of file ScopedAssign.hh.
|
inline |
Definition at line 10 of file ScopedAssign.hh.
|
inline |
Definition at line 16 of file ScopedAssign.hh.