]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/metaparse/v1/cpp98/impl/push_front_c.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / metaparse / v1 / cpp98 / impl / push_front_c.hpp
1 #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_PUSH_FRONT_C_HPP
2 #define BOOST_METAPARSE_V1_CPP98_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/v1/cpp98/fwd/string.hpp>
10
11 #include <boost/preprocessor/arithmetic/dec.hpp>
12 #include <boost/preprocessor/repetition/enum_params.hpp>
13
14 namespace boost
15 {
16 namespace metaparse
17 {
18 namespace v1
19 {
20 namespace impl
21 {
22 template <class S, char C>
23 struct push_front_c;
24
25 template <
26 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, int C),
27 char Ch
28 >
29 struct push_front_c<
30 string<BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, C)>,
31 Ch
32 > :
33 string<
34 Ch,
35 BOOST_PP_ENUM_PARAMS(
36 BOOST_PP_DEC(BOOST_METAPARSE_LIMIT_STRING_SIZE),
37 C
38 )
39 >
40 {};
41 }
42 }
43 }
44 }
45
46 #endif
47