Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:40:49

0001 #ifndef BOOST_METAPARSE_V1_UTIL_IS_LETTER_HPP
0002 #define BOOST_METAPARSE_V1_UTIL_IS_LETTER_HPP
0003 
0004 // Copyright Abel Sinkovics (abel@sinkovics.hu)  2009 - 2010.
0005 // Distributed under the Boost Software License, Version 1.0.
0006 //    (See accompanying file LICENSE_1_0.txt or copy at
0007 //          http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #include <boost/metaparse/v1/util/is_ucase_letter.hpp>
0010 #include <boost/metaparse/v1/util/is_lcase_letter.hpp>
0011 
0012 #include <boost/mpl/bool.hpp>
0013 #include <boost/mpl/vector.hpp>
0014 
0015 namespace boost
0016 {
0017   namespace metaparse
0018   {
0019     namespace v1
0020     {
0021       namespace util
0022       {
0023         template <class C = boost::mpl::na>
0024         struct is_letter :
0025           boost::mpl::bool_<
0026             is_lcase_letter<C>::type::value || is_ucase_letter<C>::type::value
0027           >
0028         {};
0029 
0030         template <>
0031         struct is_letter<boost::mpl::na>
0032         {
0033           typedef is_letter type;
0034           
0035           template <class C = boost::mpl::na>
0036           struct apply : is_letter<C> {};
0037         };
0038       }
0039     }
0040   }
0041 }
0042 
0043 #endif
0044