[#int_] [section int_] [h1 Synopsis] struct int_; This is a [link parser parser]. [h1 Description] It accepts a non-empty sequence of characters in the range `0-9`. The result of the parser is the decimal value represented by the accepted character sequence. [h1 Header] #include [h1 Expression semantics] The following are equivalent: int_ foldl1< digit_val, boost::mpl::int_<0>, boost::mpl::lambda< boost::mpl::plus< boost::mpl::times>, boost::mpl::_1 > >::type > [h1 Example] #include #include #include #include #include using namespace boost::metaparse; static_assert( get_result< int_::apply >::type::value == 13, "It should parse an integer value" ); static_assert( is_error>::type::value, "It should reject the input if it is not a number" ); [endsect]