Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
grammar::parse (2 of 2 overloads)

Parse a character buffer using a rule.

Synopsis

Defined in header <boost/url/grammar/parse.hpp>

template<
    class Rule>
result< typename Rule::value_type >
parse(
    string_view s,
    Rule const& r);
Description

This function parses a complete string into the specified sequence of rules. If the string is not completely consumed, an error is returned instead.

Parameters

Name

Description

s

The input string

r

The rule to use

Return Value

The parsed value upon success, otherwise an error.

See Also

result.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext