boost::urls::grammar::unsigned_rule :: Boost Libraries Documentation

# boost::urls::grammar::unsigned_rule

Match an unsigned decimal

## Synopsis

Declared in `<boost/url/grammar/unsigned_rule.hpp>`

    template<class Unsigned>
    struct unsigned_rule;

## Description

Extra leading zeroes are disallowed.

## Value Type

    using value_type = Unsigned;

## Example

Rules are used with the function `parse`.

    system::result< unsigned short > rv = parse( "32767", unsigned_rule< unsigned short >{} );

## BNF

    unsigned      = "0" / ( ["1"..."9"] *DIGIT )

## Types

Name
`value_type`

## Member Functions

Name
`parse`

## Template Parameters

Name | Description
--- | ---
Unsigned | The unsigned integer type used to store the result.

## See Also

`grammar::parse`.

Created with MrDocs