TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ operator/ [2/3]

template<typename BasicJsonType >
json_pointer operator/ ( const json_pointer< BasicJsonType > &  ptr,
std::size_t  array_idx 
)
friend

create a new JSON pointer by appending the array-index-token at the end of the JSON pointer

Parameters
[in]ptrJSON pointer
[in]array_idxarray index
Returns
a new JSON pointer with array_idx appended to ptr

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

@complexity Linear in the length of ptr.

See also
see operator/=(std::size_t) to append an array index
Since
version 3.6.0

Definition at line 12748 of file json.hpp.

12749 {
12750 return json_pointer(ptr) /= array_idx;
12751 }
json_pointer(const std::string &s="")
create JSON pointer
Definition: json.hpp:12591