mirror of
https://github.com/nlohmann/json.git
synced 2026-10-19 12:38:12 +00:00
overworked iterators
This commit is contained in:
1 parent
bc2e3a798d
commit
d524e23204
5 files changed
+3277
-1648
No files matched your search
@@ -214,6 +214,14 @@ j.empty(); // false
|
|||||||
j.type(); // json::value_t::array
|
j.type(); // json::value_t::array
|
||||||
j.clear(); // the array is empty again
|
j.clear(); // the array is empty again
|
||||||
|
|
||||||
|
// convenience type checkers
|
||||||
|
j.is_null();
|
||||||
|
j.is_boolean();
|
||||||
|
j.is_number();
|
||||||
|
j.is_object();
|
||||||
|
j.is_array();
|
||||||
|
j.is_string();
|
||||||
|
|
||||||
// comparison
|
// comparison
|
||||||
j == "[\"foo\", 1, true]"_json; // true
|
j == "[\"foo\", 1, true]"_json; // true
|
||||||
|
|
||||||
|
|||||||
+640
-174
File diff suppressed because it is too large.
Load diff
+640
-174
File diff suppressed because it is too large.
Load diff
+1989
-1300
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user