! @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 related function @ref
| 1957 | @since version 1.0.0 |
| 1958 | */ |
| 1959 | JSON_HEDLEY_WARN_UNUSED_RESULT |
| 1960 | static basic_json object(initializer_list_t init = {}) |
| 1961 | { |
| 1962 | return basic_json(init, false, value_t::object); |
| 1963 | } |
| 1964 | |
| 1965 | /*! |
| 1966 | @brief construct an array with count copies of given value |
nothing calls this directly
no test coverage detected