Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit a2b80500d6.
PrevUpHomeNext

Struct template switch_parser

boost::parser::switch_parser

Synopsis

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

template<typename SwitchValue, typename OrParser = unspecified> 
struct switch_parser {
};

Description

Applies at most one of the parsers in OrParser. If switch_value_ matches one or more of the values in the parsers in OrParser, the first such parser is applied, and the success or failure and attribute of the parse are those of the applied parser. Otherwise, the parse fails.


PrevUpHomeNext