TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ operator/=() [2/3]

template<typename BasicJsonType >
json_pointer & nlohmann::json_pointer< BasicJsonType >::operator/= ( std::size_t  array_idx)
inline

append an array index at the end of this JSON pointer

Parameters
[in]array_idxarray index to append
Returns
JSON pointer with array_idx appended

@liveexample{The example shows the usage of operator/=.,json_pointer__operator_add}

@complexity Amortized constant.

See also
see operator/=(const json_pointer&) to append a JSON pointer
see operator/=(std::string) to append a reference token
see operator/(const json_pointer&, std::string) for a binary operator
Since
version 3.6.0

Definition at line 12687 of file json.hpp.

12688 {
12689 return *this /= std::to_string(array_idx);
12690 }