1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2006 Dan Marsden
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #ifndef BOOST_PP_IS_ITERATING
9 #if !defined(FUSION_PP_DEQUE_TIE_07192005_1242)
10 #define FUSION_PP_DEQUE_TIE_07192005_1242
12 #include <boost/preprocessor/iterate.hpp>
13 #include <boost/preprocessor/cat.hpp>
14 #include <boost/preprocessor/repetition/enum_params.hpp>
15 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
16 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
17 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
18 #include <boost/fusion/container/deque/deque.hpp>
20 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
21 #include <boost/fusion/container/generation/detail/preprocessed/deque_tie.hpp>
23 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
24 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/deque_tie" FUSION_MAX_DEQUE_SIZE_STR ".hpp")
27 /*=============================================================================
28 Copyright (c) 2001-2011 Joel de Guzman
30 Distributed under the Boost Software License, Version 1.0. (See accompanying
31 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
33 This is an auto-generated file. Do not edit!
34 ==============================================================================*/
36 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
37 #pragma wave option(preserve: 1)
40 namespace boost { namespace fusion
47 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
48 FUSION_MAX_DEQUE_SIZE, typename T, void_)
49 , typename Extra = void_
54 #define BOOST_FUSION_REF(z, n, data) BOOST_PP_CAT(T, n)&
56 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_deque_tie.hpp>
57 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_DEQUE_SIZE)
58 #include BOOST_PP_ITERATE()
60 #undef BOOST_FUSION_REF
64 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
65 #pragma wave option(output: null)
68 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
71 #else // defined(BOOST_PP_IS_ITERATING)
72 ///////////////////////////////////////////////////////////////////////////////
74 // Preprocessor vertical repetition code
76 ///////////////////////////////////////////////////////////////////////////////
78 #define N BOOST_PP_ITERATION()
82 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
83 #define TEXT(z, n, text) , text
84 struct deque_tie< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_DEQUE_SIZE, TEXT, void_) >
87 typedef deque<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> type;
91 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
92 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
93 inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
94 deque_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
96 return deque<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>(
97 BOOST_PP_ENUM_PARAMS(N, arg));
101 #endif // defined(BOOST_PP_IS_ITERATING)