JSON for Modern C++  3.6.1

◆ back()

template<typename BasicJsonType >
const std::string& nlohmann::json_pointer< BasicJsonType >::back ( )
inline
Precondition
not empty()
Returns
last reference token
Example^^ The example shows the usage of back. ^^ json_pointer__back.cpp
Output (play with this example online):^^
last reference token of "/foo" is foo
last reference token of "/foo/0" is 0
^^ The example code above can be translated with
g++ -std=c++11 -Isingle_include doc/examples/json_pointer__back.cpp -o json_pointer__back 
Complexity^^ Constant.
Exceptions
out_of_range.405if JSON pointer has no parent
Since
version 3.6.0

Definition at line 8679 of file json.hpp.