! @brief explicitly create an object from an initializer list Creates a JSON object value from a given initializer list. The initializer lists elements must be pairs, and their first elements must be strings. If the initializer list is empty, the empty object `{}` is created. @note This function is only added for symmetry reasons. In contrast to the
| 18310 | @since version 1.0.0 |
| 18311 | */ |
| 18312 | JSON_HEDLEY_WARN_UNUSED_RESULT |
| 18313 | static basic_json object(initializer_list_t init = {}) |
| 18314 | { |
| 18315 | return basic_json(init, false, value_t::object); |
| 18316 | } |
| 18317 | |
| 18318 | /*! |
| 18319 | @brief construct an array with count copies of given value |
nothing calls this directly
no test coverage detected