SettingToString

Convert a settings value to a string, using a default when unset.

Synopsis

Declared in <common/args.h>

std::string
SettingToString(
    common::SettingsValue const& value,
    std::string const& default_value);

Return Value

The string value, or the provided default when unset.

Parameters

NameDescription
valueThe settings value to convert.
default_valueValue returned when the setting is unset.