Convert a settings value to an integer, using a default when unset.
Declared in <common/args.h>
template<std::integral Int>
Int
SettingTo(
common::SettingsValue const& value,
Int default_value);
The integer value, or the provided default when unset.
| Name | Description |
|---|---|
| value | The settings value to convert. |
| default_value | Value returned when the setting is unset. |