1 #ifndef BOOST_METAPARSE_V1_IMPL_PUSH_FRONT_C_HPP
2 #define BOOST_METAPARSE_V1_IMPL_PUSH_FRONT_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/config.hpp>
10 #include <boost/metaparse/v1/fwd/string.hpp>
12 #include <boost/preprocessor/arithmetic/dec.hpp>
13 #include <boost/preprocessor/repetition/enum_params.hpp>
23 template <class S, char C>
26 #ifdef BOOST_METAPARSE_VARIADIC_STRING
27 template <char... Cs, char C>
28 struct push_front_c<string<Cs...>, C> : string<C, Cs...> {};
31 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, int C),
35 string<BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, C)>,
41 BOOST_PP_DEC(BOOST_METAPARSE_LIMIT_STRING_SIZE),