|
FE 0.13.1
Header-only C++ frontend library
|
RAII guard that restores a value at the end of the scope. More...
#include <fe/restore.h>
Public Member Functions | |
| Restore () | |
Saves what Get yields and restores it in the destructor. | |
| Restore (T value) | |
As above but Sets value up front. | |
| ~Restore () | |
| Restore (const Restore &)=delete | |
| Restore & | operator= (const Restore &)=delete |
RAII guard that restores a value at the end of the scope.
This primary template guards whatever Get reads and Set writes; see fe::term::ScopedMode.
|
inline |
|
inlineexplicit |
|
inline |
|
delete |
|
delete |