SettingTo

Convert a settings value to an optional integer.

Synopsis

Declared in <common/args.h>

template<std::integral Int>
std::optional<Int>
SettingTo(common::SettingsValue const& value);

Return Value

The integer value, or std::nullopt when unset.

Parameters

NameDescription
valueThe settings value to convert.