Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template attribute

boost::parser::attribute

Synopsis

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

template<typename R, typename Parser> 
struct attribute {
};

Description

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.


PrevUpHomeNext