![]() |
Home | Libraries | People | FAQ | More |
boost::parser::int_parser
// In header: <boost/parser/parser_fwd.hpp> template<typename T, int Radix = 10, int MinDigits = 1, int MaxDigits = -1, typename Expected = unspecified> struct int_parser { };
Matches a signed 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 one of 2
, 8
, 10
, or 16
.