Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_AT_C_HPP
0002 #define BOOST_METAPARSE_V1_CPP11_IMPL_AT_C_HPP
0003 
0004 // Copyright Abel Sinkovics (abel@sinkovics.hu)  2013.
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/cpp11/fwd/string.hpp>
0010 
0011 #include <boost/mpl/char.hpp>
0012 
0013 namespace boost
0014 {
0015   namespace metaparse
0016   {
0017     namespace v1
0018     {
0019       namespace impl
0020       {
0021         template <class S, int N>
0022         struct at_c;
0023 
0024         template <char C, char... Cs, int N>
0025         struct at_c<string<C, Cs...>, N> : at_c<string<Cs...>, N - 1> {};
0026 
0027         template <char C, char... Cs>
0028         struct at_c<string<C, Cs...>, 0> : boost::mpl::char_<C> {};
0029       }
0030     }
0031   }
0032 }
0033 
0034 #endif
0035