]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/impl/push_front_c.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / impl / push_front_c.hpp
1 #ifndef BOOST_METAPARSE_V1_IMPL_PUSH_FRONT_C_HPP
2 #define BOOST_METAPARSE_V1_IMPL_PUSH_FRONT_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/config.hpp>
10 #include <boost/metaparse/v1/fwd/string.hpp>
11
12 #include <boost/preprocessor/arithmetic/dec.hpp>
13 #include <boost/preprocessor/repetition/enum_params.hpp>
14
15 namespace boost
16 {
17 namespace metaparse
18 {
19 namespace v1
20 {
21 namespace impl
22 {
23 template <class S, char C>
24 struct push_front_c;
25
26 #ifdef BOOST_METAPARSE_VARIADIC_STRING
27 template <char... Cs, char C>
28 struct push_front_c<string<Cs...>, C> : string<C, Cs...> {};
29 #else
30 template <
31 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, int C),
32 char Ch
33 >
34 struct push_front_c<
35 string<BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, C)>,
36 Ch
37 > :
38 string<
39 Ch,
40 BOOST_PP_ENUM_PARAMS(
41 BOOST_PP_DEC(BOOST_METAPARSE_LIMIT_STRING_SIZE),
42 C
43 )
44 >
45 {};
46 #endif
47 }
48 }
49 }
50 }
51
52 #endif
53