...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::parser::uint_parser
// In header: <boost/parser/parser_fwd.hpp> template<typename T, int Radix = 10, int MinDigits = 1, int MaxDigits = -1, typename Expected = unspecified> struct uint_parser { };
Matches an unsigned number of radix Radix
, of at least MinDigits
and at most MaxDigits
, producing an attribute of type T
. Fails on any other input. The parse will also fail if Expected
is anything but detail::nope
(which it is by default), and the produced attribute is not equal to expected_
. Radix
must be in [2, 36]
.