]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/generation/detail/pp_make_map.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / generation / detail / pp_make_map.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3
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_PP_MAKE_MAP_07222005_1247)
9#define FUSION_PP_MAKE_MAP_07222005_1247
10
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/map/map.hpp>
17#include <boost/fusion/support/detail/as_fusion_element.hpp>
18#include <boost/fusion/support/pair.hpp>
19
20#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
21#include <boost/fusion/container/generation/detail/preprocessed/make_map.hpp>
22#else
23#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
24#pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_map" FUSION_MAX_MAP_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_VECTOR_SIZE, typename K, void_)
49 , BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
50 FUSION_MAX_VECTOR_SIZE, typename D, void_)
51 , typename Extra = void_
52 >
53 struct make_map;
54
55 template <>
56 struct make_map<>
57 {
58 typedef map<> type;
59 };
60 }
61
62 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
63 inline map<>
64 make_map()
65 {
66 return map<>();
67 }
68
69#define BOOST_FUSION_PAIR(z, n, data) \
70 fusion::pair< \
71 BOOST_PP_CAT(K, n) \
72 , typename detail::as_fusion_element<BOOST_PP_CAT(D, n)>::type>
73
74#define BOOST_FUSION_MAKE_PAIR(z, n, _) \
75 fusion::make_pair<BOOST_PP_CAT(K, n)>(BOOST_PP_CAT(_, n)) \
76
77#define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_map.hpp>
78#define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
79#include BOOST_PP_ITERATE()
80
81#undef BOOST_FUSION_PAIR
82#undef BOOST_FUSION_MAKE_PAIR
83
84}}
85
86#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
87#pragma wave option(output: null)
88#endif
89
90#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
91
92#endif
93#else // defined(BOOST_PP_IS_ITERATING)
94///////////////////////////////////////////////////////////////////////////////
95//
96// Preprocessor vertical repetition code
97//
98///////////////////////////////////////////////////////////////////////////////
99
100#define N BOOST_PP_ITERATION()
101
102 namespace result_of
103 {
104 template <
105 BOOST_PP_ENUM_PARAMS(N, typename K)
106 , BOOST_PP_ENUM_PARAMS(N, typename D)
107 >
108 #define TEXT(z, n, text) , text
109 struct make_map<BOOST_PP_ENUM_PARAMS(N, K), BOOST_PP_ENUM_PARAMS(N, D) BOOST_PP_REPEAT_FROM_TO(N, FUSION_MAX_VECTOR_SIZE, TEXT, void_) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_VECTOR_SIZE, TEXT, void_)>
110 #undef TEXT
111 {
112 typedef map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)> type;
113 };
114 }
115
116 template <
117 BOOST_PP_ENUM_PARAMS(N, typename K)
118 , BOOST_PP_ENUM_PARAMS(N, typename D)
119 >
120 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
121 inline map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)>
122 make_map(BOOST_PP_ENUM_BINARY_PARAMS(N, D, const& arg))
123 {
124 return map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)>(
125 BOOST_PP_ENUM(N, BOOST_FUSION_MAKE_PAIR, arg));
126 }
127
128#undef N
129#endif // defined(BOOST_PP_IS_ITERATING)
130