setStringArray#
Fully qualified name: carb::settings::setStringArray
Defined in carb/settings/SettingsUtils.h
- inline void carb::settings::setStringArray(
- ISettings *settings,
- cpp::string_view path,
- const std::vector<std::string> &array,
A helper function for setting a
std::vector<std::string>as an array of strings.Note
arrayis first converted to an array ofcarb::cpp::zstring_viewon the stack and then passed in to ISettings::setStringArray. If the stack is particularly small andarrayis particularly large, stack space may be exceeded. In this case, it is advised to call ISettings::setStringArray directly.- Parameters:
settings – The acquired ISettings interface.
path – The setting key path. See ISettings::setStringArray for details.
array – A vector containing the std::string values for the setting value.