![]() |
Home | Libraries | People | FAQ | More |
boost::parser::attribute
// In header: <boost/parser/parser_fwd.hpp> template<typename R, typename Parser> struct attribute { };
A type trait that evaluates to the attribute type for parser Parser used to parse range R, as if by calling parse(r, parser), using some R r and Parser parser. Note that this implies that pointers to null-terminated strings are supported types for R. The result is not wrapped in a std::optional like the result of a call to parse() would be. If Parser produces no attribute, the result is the no-attribute sentinel type none.