JSON for Modern C++  3.6.1

◆ pop_back()

template<typename BasicJsonType >
void nlohmann::json_pointer< BasicJsonType >::pop_back ( )
inline
Precondition
not empty()
Example^^ The example shows the usage of pop_back. ^^ json_pointer__pop_back.cpp
Output (play with this example online):^^
"/foo/bar/baz"
"/foo/bar"
"/foo"
""
^^ The example code above can be translated with
g++ -std=c++11 -Isingle_include doc/examples/json_pointer__pop_back.cpp -o json_pointer__pop_back 
Complexity^^ Constant.
Exceptions
out_of_range.405if JSON pointer has no parent
Since
version 3.6.0

Definition at line 8655 of file json.hpp.