|
JSON for Modern C++
3.0
|
|
inlinenoexcept |
Checks if a JSON value has no elements.
| Value type | return value |
|---|---|
| null | true |
| boolean | false |
| string | false |
| number | false |
| object | result of function object_t::empty() |
| array | result of function array_t::empty() |
true false false false false true false true falseThe example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/empty.cpp -o empty.