Change and restore stack-based variables. More...
Go to the source code of this file.
Classes | |
class | SgRestorer< T > |
A SgRestorer<T> variable saves the current state of a variable of type T and restores it to that saved value upon leaving the scope in an exception-safe way. More... | |
class | SgAssertRestored< T > |
Saves the current state of a variable of type T and asserts that the saved value equals the value upon leaving the scope. More... |
Change and restore stack-based variables.
Definition in file SgRestorer.h.