Ion
|
Sets a Setting<T> to a new value. More...
#include "setting.h"
Public Member Functions | |
ScopedSettingValue (Setting< T > *setting, const T &value) | |
Save the original setting value, and change to the new value. More... | |
~ScopedSettingValue () | |
Restore the original value to the Setting<T>. More... | |
Sets a Setting<T> to a new value.
The original value will be restored when the ScopedSettingValue is deleted. The Setting<T> must outlive the ScopedSettingValue object.
|
inline |
|
inline |