Searched defs:SaveAndRestore (Results 1 – 1 of 1) sorted by relevance
22 template <typename T> struct SaveAndRestore { struct23 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() argument24 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() argument27 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument35 /// Similar to \c SaveAndRestore. Operates only on bools; the old value of a argument