1 #ifndef SCOPEDTEMPORARYVALUE_H 2 #define SCOPEDTEMPORARYVALUE_H 106 #endif // SCOPEDTEMPORARYVALUE_H ScopedTemporaryValue(T &var, T newValue)
Constructor, which reads the old value from T, and sets it to a new (temporary) value.
~ScopedTemporaryValue()
Destructor, which restores the original value.
Scoped temporary variable template.
ScopedTemporaryValue(T &var)
Constructor, which reads the old value from T, but does not change it.