[#digit_to_int] [section digit_to_int] [h1 Synopsis] namespace util { template struct digit_to_int; } This is a [link lazy_metafunction lazy template metafunction] that supports [link currying currying]. [table Arguments [[Name] [Type]] [[`D`] [[link boxed_value boxed] character value]] ] [h1 Description] Converts a boxed character containing a value in the range `['0'..'9']` to an integer. [h1 Return value] It returns a [link boxed_value boxed] integer value. [h1 Header] #include [h1 Expression semantics] For any `C` boxed character value in the range `['0'..'9']` the following expressions are equivalent digit_to_int<>::apply::type digit_to_int::type digit_to_int_c::type [h1 Example] #include #include using namespace boost::metaparse; struct nullary_metafunction_returning_4 { using type = std::integral_constant; }; static_assert( util::digit_to_int>::type::value == 0, "it should convert a character to the corresponding integer value" ); static_assert( util::digit_to_int<>::type ::apply>::type::value == 7, "it should support currying" ); static_assert( util::digit_to_int::type::value == 4, "it should support lazy evaluation" ); [endsect]