]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/fusion/container/generation/detail/pp_make_list.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / fusion / container / generation / detail / pp_make_list.hpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef BOOST_PP_IS_ITERATING
8 #if !defined(FUSION_PP_MAKE_LIST_07192005_1239)
9 #define FUSION_PP_MAKE_LIST_07192005_1239
10
11 #include <boost/preprocessor/iterate.hpp>
12 #include <boost/preprocessor/repetition/enum_params.hpp>
13 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
14 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
15 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
16 #include <boost/fusion/container/list/list.hpp>
17 #include <boost/fusion/support/detail/as_fusion_element.hpp>
18
19 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
20 #include <boost/fusion/container/generation/detail/preprocessed/make_list.hpp>
21 #else
22 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
23 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_list" FUSION_MAX_LIST_SIZE_STR".hpp")
24 #endif
25
26 /*=============================================================================
27 Copyright (c) 2001-2011 Joel de Guzman
28
29 Distributed under the Boost Software License, Version 1.0. (See accompanying
30 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
31
32 This is an auto-generated file. Do not edit!
33 ==============================================================================*/
34
35 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
36 #pragma wave option(preserve: 1)
37 #endif
38
39 namespace boost { namespace fusion
40 {
41 struct void_;
42
43 namespace result_of
44 {
45 template <
46 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
47 FUSION_MAX_LIST_SIZE, typename T, void_)
48 , typename Extra = void_
49 >
50 struct make_list;
51
52 template <>
53 struct make_list<>
54 {
55 typedef list<> type;
56 };
57 }
58
59 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
60 inline list<>
61 make_list()
62 {
63 return list<>();
64 }
65
66 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
67 typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
68
69 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_list.hpp>
70 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_LIST_SIZE)
71 #include BOOST_PP_ITERATE()
72
73 #undef BOOST_FUSION_AS_FUSION_ELEMENT
74
75 }}
76
77 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
78 #pragma wave option(output: null)
79 #endif
80
81 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
82
83 #endif
84 #else // defined(BOOST_PP_IS_ITERATING)
85 ///////////////////////////////////////////////////////////////////////////////
86 //
87 // Preprocessor vertical repetition code
88 //
89 ///////////////////////////////////////////////////////////////////////////////
90
91 #define N BOOST_PP_ITERATION()
92
93 namespace result_of
94 {
95 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
96 #define TEXT(z, n, text) , text
97 struct make_list< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_LIST_SIZE, TEXT, void_) >
98 #undef TEXT
99 {
100 typedef list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
101 };
102 }
103
104 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
105 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
106 inline list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
107 make_list(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
108 {
109 return list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
110 BOOST_PP_ENUM_PARAMS(N, arg));
111 }
112
113 #undef N
114 #endif // defined(BOOST_PP_IS_ITERATING)
115