1 #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_AT_C_HPP
2 #define BOOST_METAPARSE_V1_CPP11_IMPL_AT_C_HPP
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)
9 #include <boost/metaparse/v1/cpp11/fwd/string.hpp>
11 #include <boost/mpl/char.hpp>
21 template <class S, int N>
24 template <char C, char... Cs, int N>
25 struct at_c<string<C, Cs...>, N> : at_c<string<Cs...>, N - 1> {};
27 template <char C, char... Cs>
28 struct at_c<string<C, Cs...>, 0> : boost::mpl::char_<C> {};