]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/generation/detail/pp_vector_tie.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / generation / detail / pp_vector_tie.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_VECTOR_TIE_07192005_1242)
9#define FUSION_VECTOR_TIE_07192005_1242
10
11#include <boost/preprocessor/iterate.hpp>
12#include <boost/preprocessor/cat.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/vector/vector.hpp>
18
19#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
20#include <boost/fusion/container/generation/detail/preprocessed/vector_tie.hpp>
21#else
22#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
23#pragma wave option(preserve: 2, line: 0, output: "preprocessed/vector_tie" FUSION_MAX_VECTOR_SIZE_STR".hpp")
24#endif
25
26/*=============================================================================
27 Copyright (c) 2001-2011 Joel de Guzman
28
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)
31
32 This is an auto-generated file. Do not edit!
33==============================================================================*/
34
35#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
36#pragma wave option(preserve: 1)
37#endif
38
39namespace boost { namespace fusion
40{
41 struct void_;
42
43 namespace result_of
44 {
45 template <
46 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
47 FUSION_MAX_VECTOR_SIZE, typename T, void_)
48 , typename Extra = void_
49 >
50 struct vector_tie;
51 }
52
53#define BOOST_FUSION_REF(z, n, data) BOOST_PP_CAT(T, n)&
54
55#define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_vector_tie.hpp>
56#define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
57#include BOOST_PP_ITERATE()
58
59#undef BOOST_FUSION_REF
60}}
61
62#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
63#pragma wave option(output: null)
64#endif
65
66#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
67
68#endif
69#else // defined(BOOST_PP_IS_ITERATING)
70///////////////////////////////////////////////////////////////////////////////
71//
72// Preprocessor vertical repetition code
73//
74///////////////////////////////////////////////////////////////////////////////
75
76#define N BOOST_PP_ITERATION()
77
78 namespace result_of
79 {
80 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
81 #define TEXT(z, n, text) , text
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_) >
83 #undef TEXT
84 {
85 typedef vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> type;
86 };
87 }
88
89 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
90 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
91 inline vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
92 vector_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
93 {
94 return vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>(
95 BOOST_PP_ENUM_PARAMS(N, arg));
96 }
97
98#undef N
99#endif // defined(BOOST_PP_IS_ITERATING)
100