1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
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_MAKE_VECTOR_07162005_0243)
9 #define FUSION_MAKE_VECTOR_07162005_0243
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/vector/vector.hpp>
17 #include <boost/fusion/support/detail/as_fusion_element.hpp>
19 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
20 #include <boost/fusion/container/generation/detail/preprocessed/make_vector.hpp>
22 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
23 #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/make_vector" FUSION_MAX_VECTOR_SIZE_STR".hpp")
26 /*=============================================================================
27 Copyright (c) 2001-2011 Joel de Guzman
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)
32 This is an auto-generated file. Do not edit!
33 ==============================================================================*/
35 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
36 #pragma wave option(preserve: 1)
39 namespace boost { namespace fusion
46 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
47 FUSION_MAX_VECTOR_SIZE, typename T, void_)
48 , typename Extra = void_
55 typedef vector0<> type;
59 BOOST_FUSION_GPU_ENABLED inline vector0<>
65 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
66 typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
68 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/make_vector.hpp>
69 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
70 #include BOOST_PP_ITERATE()
72 #undef BOOST_FUSION_AS_FUSION_ELEMENT
76 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
77 #pragma wave option(output: null)
80 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
83 #else // defined(BOOST_PP_IS_ITERATING)
84 ///////////////////////////////////////////////////////////////////////////////
86 // Preprocessor vertical repetition code
88 ///////////////////////////////////////////////////////////////////////////////
90 #define N BOOST_PP_ITERATION()
94 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
95 #define TEXT(z, n, text) , text
96 struct make_vector< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_VECTOR_SIZE, TEXT, void_) >
99 typedef BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
103 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
104 BOOST_FUSION_GPU_ENABLED
105 inline BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
106 make_vector(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& _))
108 return BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
109 BOOST_PP_ENUM_PARAMS(N, _));
113 #endif // defined(BOOST_PP_IS_ITERATING)