]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/metaparse/v1/cpp11/impl/at_c.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / metaparse / v1 / cpp11 / impl / at_c.hpp
1 #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_AT_C_HPP
2 #define BOOST_METAPARSE_V1_CPP11_IMPL_AT_C_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
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/cpp11/fwd/string.hpp>
10
11 #include <boost/mpl/char.hpp>
12
13 namespace boost
14 {
15 namespace metaparse
16 {
17 namespace v1
18 {
19 namespace impl
20 {
21 template <class S, int N>
22 struct at_c;
23
24 template <char C, char... Cs, int N>
25 struct at_c<string<C, Cs...>, N> : at_c<string<Cs...>, N - 1> {};
26
27 template <char C, char... Cs>
28 struct at_c<string<C, Cs...>, 0> : boost::mpl::char_<C> {};
29 }
30 }
31 }
32 }
33
34 #endif
35