Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template prefix_parse

boost::parser::prefix_parse

Synopsis

// In header: <boost/parser/parser.hpp>


template< I,  S, typename Parser, 
         typename GlobalState, 
          ErrorHandler, typename Attr> 
  bool ( first,  last, 
                    parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
                    Attr & attr,  trace_mode = );

Description

Parses [first, last) using parser, and returns whether the parse was successful. On success, attr will be assigned the value of the attribute produced by parser. If trace_mode == trace::on, a verbose trace of the parse will be streamed to std::cout.

Template Parameters:

Attr

Constrained by !detail::derived_from_parser_interface_v<std::remove_cvref_t<Attr>.


PrevUpHomeNext