...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Match an unsigned decimal.
Defined in header <boost/url/grammar/unsigned_rule.hpp>
template< class Unsigned> struct unsigned_rule
Extra leading zeroes are disallowed.
using value_type = Unsigned;
Rules are used with the function parse
.
system::result< unsigned short > rv = parse( "32767" , unsigned_rule< unsigned short >{} );
unsigned = "0" / ( [ "1" ... "9" ] *DIGIT )
Type |
Description |
---|---|
|
The unsigned integer type used to store the result. |
Convenience header <boost/url/grammar.hpp>