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