1#ifndef SIMDJSON_GENERIC_ONDEMAND_ARRAY_ITERATOR_H
3#ifndef SIMDJSON_CONDITIONAL_INCLUDE
4#define SIMDJSON_GENERIC_ONDEMAND_ARRAY_ITERATOR_H
5#include "simdjson/generic/implementation_simdjson_result_base.h"
6#include "simdjson/generic/ondemand/base.h"
7#include "simdjson/generic/ondemand/value_iterator.h"
12namespace SIMDJSON_IMPLEMENTATION {
46 simdjson_inline
bool operator==(const
array_iterator &) const noexcept;
54 simdjson_inline
bool operator!=(const
array_iterator &) const noexcept;
65 simdjson_warn_unused simdjson_inline
bool at_end() const noexcept;
68 value_iterator iter{};
70 simdjson_inline
array_iterator(
const value_iterator &iter)
noexcept;
84struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> :
public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> {
85 simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::array_iterator &&value)
noexcept;
87 simdjson_inline simdjson_result() noexcept = default;
93 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator*() noexcept;
94 simdjson_inline
bool operator==(const simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> &) const noexcept;
95 simdjson_inline
bool operator!=(const simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> &) const noexcept;
96 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> &operator++() noexcept;
98 simdjson_warn_unused simdjson_inline
bool at_end() const noexcept;
A forward-only JSON array.
simdjson_inline array_iterator() noexcept=default
Create a new, invalid array iterator.
simdjson_warn_unused simdjson_inline bool at_end() const noexcept
Check if the array is at the end.
A forward-only JSON array.
An ephemeral JSON value returned during iteration.
The top level simdjson namespace, containing everything the library provides.
error_code
All possible errors returned by simdjson.
The result of a simdjson operation that could fail.
simdjson_inline error_code error() const noexcept
The error.