| Home | Libraries | People | FAQ | More

## Struct template attribute

boost::parser::attribute

## Synopsis

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

    template<typename R, typename Parser>
    struct attribute {
      // types
      typedef unspecified initial_type;
      typedef unspecified type;
    };

## 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`.