|
JSON for Modern C++
3.0
|
|
inline |
Returns a reference to the last element in the container. For a JSON container c, the expression c.back() is equivalent to { auto tmp = c.end(); --tmp; return *tmp; }.
back on an empty container is undefined.| std::out_of_range | when called on null value. |
true 17 23.42 2 16 "Hello, world"The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/back.cpp -o back.