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