Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct merge_directive

boost::parser::merge_directive

Synopsis

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


struct merge_directive {

  // public member functions
  template<typename ParserTuple, typename BacktrackingTuple, 
           typename CombiningGroups> 
    auto operator[](parser_interface< seq_parser< ParserTuple, BacktrackingTuple, CombiningGroups > >) const noexcept;
};

Description

A directive type that can only be used on sequence parsers, that forces the merge of all the sequence_parser's subparser's attributes into a single attribute.

merge_directive public member functions

  1. template<typename ParserTuple, typename BacktrackingTuple, 
             typename CombiningGroups> 
      auto operator[](parser_interface< seq_parser< ParserTuple, BacktrackingTuple, CombiningGroups > > rhs) const noexcept;

PrevUpHomeNext