[#boost-urls-grammar-unsigned_rule] = xref:boost/urls/grammar/unsigned_rule.adoc[boost::urls::grammar::unsigned_rule] :relfileprefix: ../../../ :mrdocs: Match an unsigned decimal == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/unsigned_rule.hpp#L52[boost/url/grammar/unsigned_rule.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Unsigned> struct unsigned_rule; ---- == Types [cols=1] |=== | Name | xref:boost/urls/grammar/unsigned_rule/value_type.adoc[`value_type`] |=== == Member Functions [cols=1] |=== | Name | xref:boost/urls/grammar/unsigned_rule/parse.adoc[`parse`] |=== == Description Extra leading zeroes are disallowed. == Value Type [,cpp] ---- using value_type = Unsigned; ---- == Example Rules are used with the function xref:boost/urls/grammar/unsigned_rule/parse.adoc[`parse`]. [,cpp] ---- system::result< unsigned short > rv = parse( "32767", unsigned_rule< unsigned short >{} ); ---- == BNF [,cpp] ---- unsigned = "0" / ( ["1"..."9"] *DIGIT ) ---- == Template Parameters [cols=2] |=== | Name | Description | *Unsigned* | The unsigned integer type used to store the result. |=== == See Also xref:boost/urls/grammar/parse-09.adoc[`grammar::parse`]. [.small]#Created with https://www.mrdocs.com[MrDocs]#