]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/util/is_letter.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / util / is_letter.hpp
1 #ifndef BOOST_METAPARSE_V1_UTIL_IS_LETTER_HPP
2 #define BOOST_METAPARSE_V1_UTIL_IS_LETTER_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #include <boost/metaparse/v1/util/is_ucase_letter.hpp>
10 #include <boost/metaparse/v1/util/is_lcase_letter.hpp>
11
12 #include <boost/mpl/bool.hpp>
13 #include <boost/mpl/vector.hpp>
14
15 namespace boost
16 {
17 namespace metaparse
18 {
19 namespace v1
20 {
21 namespace util
22 {
23 template <class C = boost::mpl::na>
24 struct is_letter :
25 boost::mpl::bool_<
26 is_lcase_letter<C>::type::value || is_ucase_letter<C>::type::value
27 >
28 {};
29
30 template <>
31 struct is_letter<boost::mpl::na>
32 {
33 typedef is_letter type;
34
35 template <class C = boost::mpl::na>
36 struct apply : is_letter<C> {};
37 };
38 }
39 }
40 }
41 }
42
43 #endif
44