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 (const ScopedAssign &)=delete | |
ScopedAssign (ScopedAssign &&)=delete | |
ScopedAssign & | operator= (const ScopedAssign &)=delete |
ScopedAssign & | operator= (ScopedAssign &&)=delete |
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.
|
delete |
|
delete |
|
inline |
Definition at line 15 of file ScopedAssign.hh.
|
inline |
Definition at line 21 of file ScopedAssign.hh.
|
delete |
|
delete |