]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/generation/detail/pp_make_deque.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / generation / detail / pp_make_deque.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2006 Dan Marsden
4
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_MAKE_DEQUE_07162005_0243)
10#define FUSION_MAKE_PP_DEQUE_07162005_0243
11
12#include <boost/preprocessor/iterate.hpp>
13#include <boost/preprocessor/repetition/enum_params.hpp>
14#include <boost/preprocessor/repetition/enum_binary_params.hpp>
15#include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
16#include <boost/preprocessor/repetition/repeat_from_to.hpp>
17#include <boost/fusion/container/deque/deque.hpp>
18#include <boost/fusion/support/detail/as_fusion_element.hpp>
19
20#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
21#include <boost/fusion/container/generation/detail/preprocessed/make_deque.hpp>
22#else
23#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
24#pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_deque" FUSION_MAX_DEQUE_SIZE_STR ".hpp")
25#endif
26
27/*=============================================================================
28 Copyright (c) 2001-2011 Joel de Guzman
29
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)
32
33 This is an auto-generated file. Do not edit!
34==============================================================================*/
35
36#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
37#pragma wave option(preserve: 1)
38#endif
39
40namespace boost { namespace fusion
41{
42 struct void_;
43
44 namespace result_of
45 {
46 template <
47 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
48 FUSION_MAX_DEQUE_SIZE, typename T, void_)
49 , typename Extra = void_
50 >
51 struct make_deque;
52
53 template <>
54 struct make_deque<>
55 {
56 typedef deque<> type;
57 };
58 }
59
60 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
61 inline deque<>
62 make_deque()
63 {
64 return deque<>();
65 }
66
67#define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
68 typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
69
70#define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_deque.hpp>
71#define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_DEQUE_SIZE)
72#include BOOST_PP_ITERATE()
73
74#undef BOOST_FUSION_AS_FUSION_ELEMENT
75
76}}
77
78#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
79#pragma wave option(output: null)
80#endif
81
82#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
83
84#endif
85#else // defined(BOOST_PP_IS_ITERATING)
86///////////////////////////////////////////////////////////////////////////////
87//
88// Preprocessor vertical repetition code
89//
90///////////////////////////////////////////////////////////////////////////////
91
92#define N BOOST_PP_ITERATION()
93
94 namespace result_of
95 {
96 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
97 #define TEXT(z, n, text) , text
98 struct make_deque< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_DEQUE_SIZE, TEXT, void_) >
99 #undef TEXT
100 {
101 typedef deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
102 };
103 }
104
105 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
106 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
107 inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
108 make_deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
109 {
110 return deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
111 BOOST_PP_ENUM_PARAMS(N, arg));
112 }
113
114#undef N
115#endif // defined(BOOST_PP_IS_ITERATING)
116