]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/vector/detail/cpp03/vector_n_chooser.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / vector / detail / cpp03 / vector_n_chooser.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_N_CHOOSER_07072005_1248)
9#define FUSION_VECTOR_N_CHOOSER_07072005_1248
10
11#include <boost/fusion/container/vector/detail/cpp03/limits.hpp>
12
13// include vector0..N where N is FUSION_MAX_VECTOR_SIZE
14#include <boost/fusion/container/vector/detail/cpp03/vector10.hpp>
15#if (FUSION_MAX_VECTOR_SIZE > 10)
16#include <boost/fusion/container/vector/detail/cpp03/vector20.hpp>
17#endif
18#if (FUSION_MAX_VECTOR_SIZE > 20)
19#include <boost/fusion/container/vector/detail/cpp03/vector30.hpp>
20#endif
21#if (FUSION_MAX_VECTOR_SIZE > 30)
22#include <boost/fusion/container/vector/detail/cpp03/vector40.hpp>
23#endif
24#if (FUSION_MAX_VECTOR_SIZE > 40)
25#include <boost/fusion/container/vector/detail/cpp03/vector50.hpp>
26#endif
27
28#include <boost/preprocessor/cat.hpp>
29#include <boost/preprocessor/arithmetic/dec.hpp>
30#include <boost/preprocessor/arithmetic/sub.hpp>
31#include <boost/preprocessor/facilities/intercept.hpp>
32#include <boost/preprocessor/repetition/enum_params.hpp>
33#include <boost/preprocessor/repetition/enum_trailing_params.hpp>
34
35namespace boost { namespace fusion
36{
37 struct void_;
38}}
39
40#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
41#include <boost/fusion/container/vector/detail/cpp03/preprocessed/vector_chooser.hpp>
42#else
43#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
44#pragma wave option(preserve: 2, line: 0, output: "preprocessed/vector_chooser" FUSION_MAX_VECTOR_SIZE_STR ".hpp")
45#endif
46
47/*=============================================================================
48 Copyright (c) 2001-2011 Joel de Guzman
49
50 Distributed under the Boost Software License, Version 1.0. (See accompanying
51 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
52
53 This is an auto-generated file. Do not edit!
54==============================================================================*/
55
56#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
57#pragma wave option(preserve: 1)
58#endif
59
60namespace boost { namespace fusion { namespace detail
61{
62 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
63 struct vector_n_chooser
64 {
65 typedef BOOST_PP_CAT(vector, FUSION_MAX_VECTOR_SIZE)<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> type;
66 };
67
68 template <>
69 struct vector_n_chooser<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, void_ BOOST_PP_INTERCEPT)>
70 {
71 typedef vector0<> type;
72 };
73
74#define BOOST_PP_FILENAME_1 \
75 <boost/fusion/container/vector/detail/cpp03/vector_n_chooser.hpp>
76#define BOOST_PP_ITERATION_LIMITS (1, BOOST_PP_DEC(FUSION_MAX_VECTOR_SIZE))
77#include BOOST_PP_ITERATE()
78
79}}}
80
81#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
82#pragma wave option(output: null)
83#endif
84
85#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
86
87#endif
88
89///////////////////////////////////////////////////////////////////////////////
90//
91// Preprocessor vertical repetition code
92//
93///////////////////////////////////////////////////////////////////////////////
94#else // defined(BOOST_PP_IS_ITERATING)
95
96#define N BOOST_PP_ITERATION()
97
98 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
99 struct vector_n_chooser<
100 BOOST_PP_ENUM_PARAMS(N, T)
101 BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_SUB(FUSION_MAX_VECTOR_SIZE, N), void_ BOOST_PP_INTERCEPT)>
102 {
103 typedef BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM_PARAMS(N, T)> type;
104 };
105
106#undef N
107#endif // defined(BOOST_PP_IS_ITERATING)