Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 835 Bytes

parseArray.md

File metadata and controls

35 lines (21 loc) · 835 Bytes

parseArray

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.

Parameters

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.

Requirements

Handler must be a callable type, and given

  • handler, a value of type Handler
  • value, a value of type Value

the following expression must be valid:

handler(value)