| Home | Libraries | People | FAQ | More

## Struct template string_view_parser

boost::parser::string_view_parser

## Synopsis

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

    template<typename Parser>
    struct string_view_parser {
    };

## Description

Applies the given parser `p` of type `Parser`. Regardless of the attribute produced by `Parser`, this parser's attribute is equivalent to `std::basic_string_view<char_type>` within a semantic action on `p`, where `char_type` is the type of character in the sequence being parsed. If the parsed range is transcoded, `char_type` will be the type being transcoded from. If the underlying range of `char_type` is non-contiguous, code using `string_view_parser` is ill-formed. The parse succeeds iff `p` succeeds. This parser is only available in C++20 and later.