Searched defs:SaveAndRestore (Results 1 – 1 of 1) sorted by relevance
23 struct SaveAndRestore { struct24 SaveAndRestore(T& x) : X(x), old_value(x) {} in SaveAndRestore() function25 SaveAndRestore(T& x, const T &new_value) : X(x), old_value(x) { in SaveAndRestore() argument28 ~SaveAndRestore() { X = old_value; } in ~SaveAndRestore() argument35 // SaveOr - Similar to SaveAndRestore. Operates only on bools; the old argument