[#SettingToString-00]
= SettingToString
:mrdocs:

`SettingToString` overloads

== Synopses

Declared in `&lt;common&sol;args&period;h&gt;`

Convert a settings value to an optional string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::string&gt;
xref:SettingToString-05.adoc[SettingToString](xref:common/SettingsValue.adoc[common::SettingsValue] const& value);
----

[.small]#xref:SettingToString-05.adoc[_» more&period;&period;&period;_]#

Convert a settings value to a string, using a default when unset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:SettingToString-0b.adoc[SettingToString](
    xref:common/SettingsValue.adoc[common::SettingsValue] const& value,
    std::string const& default&lowbar;value);
----

[.small]#xref:SettingToString-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

* The string value, or std&colon;&colon;nullopt when unset&period;
* The string value, or the provided default when unset&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| The settings value to convert&period;
| *default&lowbar;value*
| Value returned when the setting is unset&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
