|
◆ operator/ [3/3]
template<typename BasicJsonType >
- Parameters
-
[in] | ptr | JSON pointer |
[in] | array_index | array index |
- Returns
- a new JSON pointer with array_index 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 withg++ -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::size_t) to append an array index
- Since
- version 3.6.0
Definition at line 8612 of file json.hpp.
|