overworked iterators
This commit is contained in:
parent
bc2e3a798d
commit
d524e23204
5 changed files with 3277 additions and 1648 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
BIN
json.gif
Normal file
BIN
json.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 344 KiB |
814
src/json.hpp
814
src/json.hpp
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3289
test/unit.cpp
3289
test/unit.cpp
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue