A utility class that uses RAII to save and restore the value of a variable.
Declared in <llvm/Support/SaveAndRestore.h>
template<typename T>
struct SaveAndRestore;
| Name | Description |
|---|---|
SaveAndRestore [constructor] | Constructors |
~SaveAndRestore [destructor] | Restore the saved value to the referenced variable. |
get | Return the saved original value. |
| Name | Description |
|---|---|
SaveAndRestore<T> | Deduce SaveAndRestore from a reference to the saved variable. |
SaveAndRestore<T> | Deduce SaveAndRestore from a reference and a const new value. |
SaveAndRestore<T> | Deduce SaveAndRestore from a reference and a movable new value. |