![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
|
inline |
access specified array element
Returns a reference to the element at specified location idx.
idx >= size()
), then the array is silently filled up with null
values to make idx
a valid reference to the last stored element.[in] | idx | index of the element to access |
type_error.305 | if the JSON value is not an array or null; in that cases, using the [] operator with an index makes no sense. |
@complexity Constant if idx is in the range of the array. Otherwise linear in idx - size()
.
@liveexample{The example below shows how array elements can be read and written using []
operator. Note the addition of null
values.,operatorarray__size_type}
Definition at line 21385 of file json.hpp.