2 [section digit_to_int_c]
12 This is a template class similar to a [link metafunction template metafunction]
13 but taking a `char` value as argument.
17 [[`D`] [character value]]
22 Converts a character containing a value in the range `['0'..'9']` to an integer.
26 It returns a [link boxed_value boxed] integer value.
30 #include <boost/metaparse/util/digit_to_int_c.hpp>
32 [h1 Expression semantics]
34 The following pairs of expressions are equivalent
36 digit_to_int_c<'0'>::type
39 digit_to_int_c<'9'>::type
44 #include <boost/metaparse/util/digit_to_int_c.hpp>
46 using namespace boost::metaparse;
49 util::digit_to_int_c<'0'>::type::value == 0,
50 "it should convert a character to the corresponding integer value"
54 util::digit_to_int_c<'3'>::type::value == 3,
55 "it should convert a character to the corresponding integer value"
59 util::digit_to_int_c<'9'>::type::value == 9,
60 "it should convert a character to the corresponding integer value"