BloombergLP::bdljsn::JsonArray::operator[]

Return a reference providing non-modifiable access to the element at the specified index in this JsonArray. The behavior is undefined unless index < size().

Synopsis

Declared in <bdljsn_json.h>

Json const&
operator[](std::size_t index) const;

Return Value

a non-modifiable reference to the element at the specified position

Parameters

NameDescription
indexzero-based element position