Function utils::getStringArrayField

Function Documentation

inline auto utils::getStringArrayField(const toml::table &registry, const std::string &key) -> std::vector<std::string>

Get the string contents of a top-level toml array field.

Parameters:
  • registry – The table to look up key in

  • key – Name of the top-level key holding the array

Returns:

The array’s string entries, in order, or an empty vector if registry has no array field named key