JSON for Modern C++  3.9.1

◆ operator/ [2/3]

template<typename BasicJsonType >
json_pointer operator/ ( const json_pointer< BasicJsonType > &  ptr,
std::string  token 
)
friend
Parameters
[in]ptrJSON pointer
[in]tokenreference token
Returns
a new JSON pointer with unescaped token appended to ptr
Example^^ The example shows the usage of operator/. ^^ json_pointer__operator_add_binary.cpp
Output (play with this example online):^^
"/foo/bar/baz"
"/foo/fob"
"/foo/42"
^^ The example code above can be translated with
g++ -std=c++11 -Isingle_include doc/examples/json_pointer__operator_add_binary.cpp -o json_pointer__operator_add_binary 
Complexity^^ Linear in the length of ptr.
See also
operator/=(std::string) to append a reference token
Since
version 3.6.0

Definition at line 11719 of file json.hpp.