setBoolArray#

Fully qualified name: carb::settings::setBoolArray

Defined in carb/settings/SettingsUtils.h

inline void carb::settings::setBoolArray(
ISettings *settings,
const char *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 of bool on the stack and then passed in to ISettings::setBoolArray. If the stack is particularly small and array is particularly large, stack space may be exceeded. In this case, it is advised to call ISettings::setBoolArray directly.

Parameters:
  • settings – The acquired ISettings interface.

  • path – The setting key path. See ISettings::setBoolArray for details.

  • array – A vector containing the bool values for the setting value.