| 174 | { |
| 175 | template<typename ValueType> |
| 176 | void reset(mir::optional_value<ValueType>& option) |
| 177 | { |
| 178 | if (option.is_set()) option.consume(); |
| 179 | } |
| 180 | |
| 181 | template<typename ValueType> |
| 182 | void set_if_needed(mir::optional_value<ValueType>& pending, ValueType const& current, ValueType const& correct) |
no test coverage detected