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 a snapshot of the master branch, built from commit 20a7dc9240.
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