]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/metaparse/v1/cpp98/impl/pop_front.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / metaparse / v1 / cpp98 / impl / pop_front.hpp
1 #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_POP_FRONT_HPP
2 #define BOOST_METAPARSE_V1_CPP98_IMPL_POP_FRONT_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/repetition/enum_params.hpp>
12 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
13
14 namespace boost
15 {
16 namespace metaparse
17 {
18 namespace v1
19 {
20 namespace impl
21 {
22 template <class S>
23 struct pop_front;
24
25 #ifdef BOOST_METAPARSE_POP_FRONT
26 # error BOOST_METAPARSE_POP_FRONT already defined
27 #endif
28 #define BOOST_METAPARSE_POP_FRONT(z, n, unused) \
29 BOOST_PP_COMMA_IF(BOOST_PP_DEC(n)) BOOST_PP_CAT(C, n)
30
31 template < \
32 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, int C) \
33 >
34 struct
35 pop_front<
36 string<BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, C)>
37 > :
38 string<
39 BOOST_PP_REPEAT_FROM_TO(
40 1,
41 BOOST_METAPARSE_LIMIT_STRING_SIZE,
42 BOOST_METAPARSE_POP_FRONT,
43 ~
44 ),
45 BOOST_NO_CHAR
46 >
47 {};
48
49 #undef BOOST_METAPARSE_POP_FRONT
50 }
51 }
52 }
53 }
54
55 #endif
56