[#SettingTo-07] = SettingTo :mrdocs: `SettingTo` overloads == Synopses Declared in `<common/args.h>` Convert a settings value to an optional integer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::integral Int> std::optional<Int> xref:SettingTo-02.adoc[SettingTo](xref:common/SettingsValue.adoc[common::SettingsValue] const& value); ---- [.small]#xref:SettingTo-02.adoc[_» more..._]# Convert a settings value to an integer, using a default when unset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::integral Int> Int xref:SettingTo-0d.adoc[SettingTo]( xref:common/SettingsValue.adoc[common::SettingsValue] const& value, Int default_value); ---- [.small]#xref:SettingTo-0d.adoc[_» more..._]# == Return Value * The integer value, or std::nullopt when unset. * The integer value, or the provided default when unset. == Parameters [cols="1,4"] |=== | Name| Description | *value* | The settings value to convert. | *default_value* | Value returned when the setting is unset. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#