53template <
typename ValueType>
82 value = originalValue;
88 const ValueType originalValue;
Helper class providing an RAII-based mechanism for temporarily setting and then re-setting a value.
ScopedValueSetter(ValueType &valueToSet, ValueType newValue)
Creates a ScopedValueSetter that will immediately change the specified value to the given new value,...
ScopedValueSetter(ValueType &valueToSet, ValueType newValue, ValueType valueWhenDeleted)
Creates a ScopedValueSetter that will immediately change the specified value to the given new value,...
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...