2 [section is_lcase_letter]
9 struct is_lcase_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 a lower case letter. Returns a boxed boolean value.
26 #include <boost/metaparse/util/is_lcase_letter.hpp>
28 [h1 Expression semantics]
30 The following expressions are equivalent:
32 is_lcase_letter<>::apply<boost::mpl::char_<'a'>>::type
35 is_lcase_letter<>::apply<boost::mpl::char_<'z'>>::type
38 is_lcase_letter<>::apply<c>::type
43 #include <boost/metaparse/util/is_lcase_letter.hpp>
45 #include <type_traits>
47 using namespace boost::metaparse;
51 using type = std::integral_constant<char, 'a'>;
55 util::is_lcase_letter<std::integral_constant<char, 'a'>>::type::value,
56 "a should be a lower case letter"
60 !util::is_lcase_letter<std::integral_constant<char, 'A'>>::type::value,
61 "A should not be a lower case letter"
65 util::is_lcase_letter<>::type
66 ::apply<std::integral_constant<char, 'a'>>::type::value,
67 "it should support currying"
71 util::is_lcase_letter<returns_char>::type::value,
72 "it should support lazy evaluation"