MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / basic_json array

Function basic_json array

3rd/json/include/nlohmann/json.hpp:14262–14266  ·  view source on GitHub ↗

! @brief explicitly create an array from an initializer list Creates a JSON array value from a given initializer list. That is, given a list of values `a, b, c`, creates the JSON value `[a, b, c]`. If the initializer list is empty, the empty array `[]` is created. @note This function is only needed to express two edge cases that cannot be realized with the initializer lis

Source from the content-addressed store, hash-verified

14260 @since version 1.0.0
14261 */
14262 JSON_NODISCARD
14263 static basic_json array(initializer_list_t init = {})
14264 {
14265 return basic_json(init, false, value_t::array);
14266 }
14267
14268 /*!
14269 @brief explicitly create an object from an initializer list

Callers

nothing calls this directly

Calls 1

basic_jsonFunction · 0.70

Tested by

no test coverage detected