folly::settings::getDefaultValue

Returns the default value of a setting by name, if it exists and has type T.

Synopsis

Declared in <folly/settings/Settings.h>

template<typename T>
T const*
getDefaultValue(std::string const& settingName);

Return Value

If the setting exists and has type T, returns the default value defined by FOLLY_SETTING_DEFINE.

Parameters

NameDescription
settingNameFully qualified name of the setting to look up.