[#is_digit] [section is_digit] [h1 Synopsis] namespace util { template struct is_digit; } This is a [link lazy_metafunction lazy template metafunction] that supports [link currying currying]. [table Arguments [[Name] [Type]] [[`C`] [[link boxed_value boxed] character value]] ] [h1 Description] Checks if `C` is a digit value or not. Returns a boxed boolean value. [h1 Header] #include [h1 Expression semantics] The following expressions are equivalent: is_digit>::type is_digit<>::apply>::type boost::mpl::true_ The following expressions are also equivalent: is_digit<>::apply::type boost::mpl::false_ [h1 Example] #include #include using namespace boost::metaparse; struct returns_char { using type = std::integral_constant; }; static_assert( util::is_digit>::type::value, "digit character should be a digit" ); static_assert( !util::is_digit>::type::value, "letter should not be a digit" ); static_assert( util::is_digit<>::type::apply>::type::value, "it should support currying" ); static_assert( util::is_digit::type::value, "it should support lazy evaluation" ); [endsect]