class new in Git master
#include <Corrade/Utility/Json.h>
JsonArrayIterator JSON array iterator.
Iterator for JsonArrayView, which is returned from Json::
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::
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.