MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / operator[]

Method operator[]

src/ArduinoJson/Array/JsonArrayConst.hpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 template <typename T,
49 detail::enable_if_t<detail::is_integral<T>::value, int> = 0>
50 JsonVariantConst operator[](T index) const {
51 return JsonVariantConst(
52 detail::ArrayData::getElement(data_, size_t(index), resources_),
53 resources_);
54 }
55
56 // Returns the element at the specified index.
57 // https://arduinojson.org/v7/api/jsonarrayconst/subscript/

Callers

nothing calls this directly

Calls 2

JsonVariantConstFunction · 0.85
getElementFunction · 0.85

Tested by

no test coverage detected