...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::parser::string_view
// In header: <boost/parser/parser.hpp> constexpr directive< string_view_parser > string_view;
The string_view
directive, whose operator[]
returns a parser_interface<string_view_parser<P>>
from a given parser of type parser_interface<P>
. This is only available in C++20 and later.