template<typename Handler>
void parseArray(Context& ctx, Handler handler);
template<typename Handler>
void parseArray(Context& ctx, Handler handler, ErrorCode& ec);
Required header: <Eclog/Parse.h>
The parseArray function parses the current array from the input source and reports the encountered top-level values to a user-defined handler.
Context&
ctx The parsing context.
Handler
handler The handler to be called when a value is encountered.
ErrorCode&
ec Set to indicate what error occurred, if any.
Handler
must be a callable type, and given
handler
, a value of typeHandler
value
, a value of type Value
the following expression must be valid:
handler(value)