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_VECTOR_TIE_07192005_1242)
|
Chris@16
|
9 #define FUSION_VECTOR_TIE_07192005_1242
|
Chris@16
|
10
|
Chris@16
|
11 #include <boost/preprocessor/iterate.hpp>
|
Chris@16
|
12 #include <boost/preprocessor/cat.hpp>
|
Chris@16
|
13 #include <boost/preprocessor/repetition/enum_params.hpp>
|
Chris@16
|
14 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
|
Chris@16
|
15 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
|
Chris@16
|
16 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
|
Chris@16
|
17 #include <boost/fusion/container/vector/vector.hpp>
|
Chris@16
|
18
|
Chris@16
|
19 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
|
Chris@16
|
20 #include <boost/fusion/container/generation/detail/preprocessed/vector_tie.hpp>
|
Chris@16
|
21 #else
|
Chris@16
|
22 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
23 #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/vector_tie" FUSION_MAX_VECTOR_SIZE_STR".hpp")
|
Chris@16
|
24 #endif
|
Chris@16
|
25
|
Chris@16
|
26 /*=============================================================================
|
Chris@16
|
27 Copyright (c) 2001-2011 Joel de Guzman
|
Chris@16
|
28
|
Chris@16
|
29 Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Chris@16
|
30 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
31
|
Chris@16
|
32 This is an auto-generated file. Do not edit!
|
Chris@16
|
33 ==============================================================================*/
|
Chris@16
|
34
|
Chris@16
|
35 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
36 #pragma wave option(preserve: 1)
|
Chris@16
|
37 #endif
|
Chris@16
|
38
|
Chris@16
|
39 namespace boost { namespace fusion
|
Chris@16
|
40 {
|
Chris@16
|
41 struct void_;
|
Chris@16
|
42
|
Chris@16
|
43 namespace result_of
|
Chris@16
|
44 {
|
Chris@16
|
45 template <
|
Chris@16
|
46 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
|
Chris@16
|
47 FUSION_MAX_VECTOR_SIZE, typename T, void_)
|
Chris@16
|
48 , typename Extra = void_
|
Chris@16
|
49 >
|
Chris@16
|
50 struct vector_tie;
|
Chris@16
|
51 }
|
Chris@16
|
52
|
Chris@16
|
53 #define BOOST_FUSION_REF(z, n, data) BOOST_PP_CAT(T, n)&
|
Chris@16
|
54
|
Chris@16
|
55 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/vector_tie.hpp>
|
Chris@16
|
56 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
|
Chris@16
|
57 #include BOOST_PP_ITERATE()
|
Chris@16
|
58
|
Chris@16
|
59 #undef BOOST_FUSION_REF
|
Chris@16
|
60 }}
|
Chris@16
|
61
|
Chris@16
|
62 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
63 #pragma wave option(output: null)
|
Chris@16
|
64 #endif
|
Chris@16
|
65
|
Chris@16
|
66 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
|
Chris@16
|
67
|
Chris@16
|
68 #endif
|
Chris@16
|
69 #else // defined(BOOST_PP_IS_ITERATING)
|
Chris@16
|
70 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
71 //
|
Chris@16
|
72 // Preprocessor vertical repetition code
|
Chris@16
|
73 //
|
Chris@16
|
74 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
75
|
Chris@16
|
76 #define N BOOST_PP_ITERATION()
|
Chris@16
|
77
|
Chris@16
|
78 namespace result_of
|
Chris@16
|
79 {
|
Chris@16
|
80 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
|
Chris@16
|
81 #define TEXT(z, n, text) , text
|
Chris@16
|
82 struct vector_tie< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_VECTOR_SIZE, TEXT, void_) >
|
Chris@16
|
83 #undef TEXT
|
Chris@16
|
84 {
|
Chris@16
|
85 typedef vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> type;
|
Chris@16
|
86 };
|
Chris@16
|
87 }
|
Chris@16
|
88
|
Chris@16
|
89 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
|
Chris@101
|
90 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
Chris@16
|
91 inline vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
|
Chris@101
|
92 vector_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
|
Chris@16
|
93 {
|
Chris@16
|
94 return vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>(
|
Chris@101
|
95 BOOST_PP_ENUM_PARAMS(N, arg));
|
Chris@16
|
96 }
|
Chris@16
|
97
|
Chris@16
|
98 #undef N
|
Chris@16
|
99 #endif // defined(BOOST_PP_IS_ITERATING)
|
Chris@16
|
100
|