...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Match a string literal exactly.
Defined in header <boost/url/grammar/literal_rule.hpp>
constexpr implementation-defined literal_rule( char const* s);
If there is no more input, or if the end of the input is reached, and a prefix
of the literal matches exactly, the error returned is error::need_more
.
using value_type = core::string_view;
Rules are used with the function parse
.
system::result< core::string_view > rv = parse( "HTTP" , literal_rule( "HTTP" ) );
Convenience header <boost/url/grammar.hpp>