parser_for

basic_parser that parses into a given type

Synopsis

Defined in header <boost/json/parse_into.hpp>.

template<
    class T>
using parser_for = see below;

Description

This is an alias template for basic_parser instantiations that use a dedicated handler that parses directly into an object provided by the user instead of creating a value.

Objects of type parser_for<T> have constructor signature equivalent to parser_for( parse_options const&, T& ).

Template Parameters

Type Description

T

the type to parse into. This type must be DefaultConstructible.

Convenience header <boost/json.hpp>.