Corrade::Utility::JsonArrayIterator class new in Git master

JSON array iterator.

Iterator for JsonArrayView, which is returned from Json::parseArray() and JsonToken::asArray(). See Iterating objects and arrays for more information.

Public functions

auto operator==(const JsonArrayIterator& other) const -> bool
Equality comparison.
auto operator!=(const JsonArrayIterator& other) const -> bool
Non-equality comparison.
auto operator++() -> JsonArrayIterator&
Advance to next position.
auto operator*() const -> JsonArrayItem
Dereference.

Function documentation

JsonArrayIterator& Corrade::Utility::JsonArrayIterator::operator++()

Advance to next position.

Expects that the iterator is not at the end of the token stream. It's however not possible to detect advancing outside of the iterated array, such iterators have undefined behavior. Implemented using JsonToken::next().

JsonArrayItem Corrade::Utility::JsonArrayIterator::operator*() const

Dereference.

Expects that the iterator is not at the end of the token stream. It's however not possible to detect advancing outside of the iterated array, dereferencing such iterators has undefined behavior.