Struct template switch_parser
boost::parser::switch_parser
Synopsis
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.