8 This is a [link parser parser].
12 It accepts a non-empty sequence of characters in the range `0-9`. The result of
13 the parser is the decimal value represented by the accepted character sequence.
17 #include <boost/metaparse/int_.hpp>
19 [h1 Expression semantics]
21 The following are equivalent:
30 boost::mpl::times<boost::mpl::_2, boost::mpl::int_<10>>,
38 #include <boost/metaparse/int_.hpp>
39 #include <boost/metaparse/string.hpp>
40 #include <boost/metaparse/start.hpp>
41 #include <boost/metaparse/is_error.hpp>
42 #include <boost/metaparse/get_result.hpp>
44 using namespace boost::metaparse;
48 int_::apply<BOOST_METAPARSE_STRING("13"), start>
50 "It should parse an integer value"
54 is_error<int_::apply<BOOST_METAPARSE_STRING("six"), start>>::type::value,
55 "It should reject the input if it is not a number"