JSON for Modern C++  3.9.1

◆ operator/=() [3/3]

template<typename BasicJsonType >
json_pointer& nlohmann::json_pointer< BasicJsonType >::operator/= ( std::size_t  array_idx)
inline
Parameters
[in]array_idxarray index to append
Returns
JSON pointer with array_idx appended
Example^^ The example shows the usage of operator/=. ^^ json_pointer__operator_add.cpp
Output (play with this example online):^^
"/foo"
"/foo/bar/baz"
"/foo/bar/baz/fob"
"/foo/bar/baz/fob/42"
^^ The example code above can be translated with
g++ -std=c++11 -Isingle_include doc/examples/json_pointer__operator_add.cpp -o json_pointer__operator_add 
Complexity^^ Amortized constant.
See also
operator/=(const json_pointer&) to append a JSON pointer
operator/=(std::string) to append a reference token
operator/(const json_pointer&, std::string) for a binary operator
Since
version 3.6.0

Definition at line 11678 of file json.hpp.