LLVM API Documentation
A utility class that uses RAII to save and restore the value of a variable. More...
#include <SaveAndRestore.h>
Public Member Functions | |
SaveAndRestore (T &X) | |
SaveAndRestore (T &X, const T &NewValue) | |
~SaveAndRestore () | |
T | get () |
A utility class that uses RAII to save and restore the value of a variable.
Definition at line 22 of file SaveAndRestore.h.
llvm::SaveAndRestore< T >::SaveAndRestore | ( | T & | X | ) | [inline] |
Definition at line 23 of file SaveAndRestore.h.
llvm::SaveAndRestore< T >::SaveAndRestore | ( | T & | X, |
const T & | NewValue | ||
) | [inline] |
Definition at line 24 of file SaveAndRestore.h.
llvm::SaveAndRestore< T >::~SaveAndRestore | ( | ) | [inline] |
Definition at line 27 of file SaveAndRestore.h.
T llvm::SaveAndRestore< T >::get | ( | ) | [inline] |
Definition at line 28 of file SaveAndRestore.h.