LLVM 20.0.0git
|
A utility class that uses RAII to save and restore the value of a variable. More...
#include "llvm/Support/SaveAndRestore.h"
Public Member Functions | |
SaveAndRestore (T &X) | |
SaveAndRestore (T &X, const T &NewValue) | |
SaveAndRestore (T &X, T &&NewValue) | |
~SaveAndRestore () | |
const T & | get () |
A utility class that uses RAII to save and restore the value of a variable.
Definition at line 23 of file SaveAndRestore.h.
|
inline |
Definition at line 24 of file SaveAndRestore.h.
|
inline |
Definition at line 25 of file SaveAndRestore.h.
|
inline |
Definition at line 26 of file SaveAndRestore.h.
|
inline |
Definition at line 29 of file SaveAndRestore.h.
|
inline |
Definition at line 30 of file SaveAndRestore.h.