|
JSON for Modern C++
3.0
|
|
inlinenoexcept |
Create a null JSON value. This is the explicitly version of the null value constructor as it takes a null pointer as parameter. It allows to create null values by explicitly assigning a nullptr to a JSON value. The passed null pointer itself is not read - it is only used to choose the right constructor.
nullThe example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/basic_json__nullptr_t.cpp -o basic_json__nullptr_t.