2 [section is_ucase_letter]
9 struct is_ucase_letter;
12 This is a [link lazy_metafunction lazy template metafunction] that supports
13 [link currying currying].
17 [[`C`] [[link boxed_value boxed] character value]]
22 Checks if `C` is an upper case letter. Returns a boxed boolean value.
26 #include <boost/metaparse/util/is_ucase_letter.hpp>
28 [h1 Expression semantics]
30 The following expressions are equivalent:
32 is_ucase_letter<>::apply<boost::mpl::char_<'A'>>::type
35 is_ucase_letter<>::apply<boost::mpl::char_<'Z'>>::type
38 is_ucase_letter<>::apply<c>::type
43 #include <boost/metaparse/util/is_ucase_letter.hpp>
45 #include <type_traits>
47 using namespace boost::metaparse;
51 using type = std::integral_constant<char, 'A'>;
55 util::is_ucase_letter<std::integral_constant<char, 'A'>>::type::value,
56 "A should be an upper case letter"
60 !util::is_ucase_letter<std::integral_constant<char, 'a'>>::type::value,
61 "a should not be an upper case letter"
65 util::is_ucase_letter<>::type
66 ::apply<std::integral_constant<char, 'A'>>::type::value,
67 "it should support currying"
71 util::is_ucase_letter<returns_char>::type::value,
72 "it should support lazy evaluation"