Niels Lohmann 2021-12-28 22:58:14 +01:00
parent 59bce783be
commit be1eafa12c
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -9,6 +9,12 @@ int main()
json j_object = {{"one", 1}, {"two", 2}}; json j_object = {{"one", 1}, {"two", 2}};
json j_array = {1, 2, 4, 8, 16}; json j_array = {1, 2, 4, 8, 16};
//////////////////////////////////////////////////////////////////////////
// The static function iterator_wrapper was deprecated in version 3.1.0
// and will be removed in version 4.0.0. Please replace all occurrences
// of iterator_wrapper(j) with j.items().
//////////////////////////////////////////////////////////////////////////
// example for an object // example for an object
for (auto& x : json::iterator_wrapper(j_object)) for (auto& x : json::iterator_wrapper(j_object))
{ {