File indexing completed on 2025-01-18 09:34:40
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_PP_IS_ITERATING
0008 #if !defined(FUSION_VECTOR_N_CHOOSER_07072005_1248)
0009 #define FUSION_VECTOR_N_CHOOSER_07072005_1248
0010
0011 #include <boost/fusion/container/vector/detail/cpp03/limits.hpp>
0012
0013
0014 #include <boost/fusion/container/vector/detail/cpp03/vector10.hpp>
0015 #if (FUSION_MAX_VECTOR_SIZE > 10)
0016 #include <boost/fusion/container/vector/detail/cpp03/vector20.hpp>
0017 #endif
0018 #if (FUSION_MAX_VECTOR_SIZE > 20)
0019 #include <boost/fusion/container/vector/detail/cpp03/vector30.hpp>
0020 #endif
0021 #if (FUSION_MAX_VECTOR_SIZE > 30)
0022 #include <boost/fusion/container/vector/detail/cpp03/vector40.hpp>
0023 #endif
0024 #if (FUSION_MAX_VECTOR_SIZE > 40)
0025 #include <boost/fusion/container/vector/detail/cpp03/vector50.hpp>
0026 #endif
0027
0028 #include <boost/preprocessor/cat.hpp>
0029 #include <boost/preprocessor/arithmetic/dec.hpp>
0030 #include <boost/preprocessor/arithmetic/sub.hpp>
0031 #include <boost/preprocessor/facilities/intercept.hpp>
0032 #include <boost/preprocessor/repetition/enum_params.hpp>
0033 #include <boost/preprocessor/repetition/enum_trailing_params.hpp>
0034
0035 namespace boost { namespace fusion
0036 {
0037 struct void_;
0038 }}
0039
0040 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0041 #include <boost/fusion/container/vector/detail/cpp03/preprocessed/vector_chooser.hpp>
0042 #else
0043 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0044 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/vector_chooser" FUSION_MAX_VECTOR_SIZE_STR ".hpp")
0045 #endif
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0057 #pragma wave option(preserve: 1)
0058 #endif
0059
0060 namespace boost { namespace fusion { namespace detail
0061 {
0062 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
0063 struct vector_n_chooser
0064 {
0065 typedef BOOST_PP_CAT(vector, FUSION_MAX_VECTOR_SIZE)<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> type;
0066 };
0067
0068 template <>
0069 struct vector_n_chooser<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, void_ BOOST_PP_INTERCEPT)>
0070 {
0071 typedef vector0<> type;
0072 };
0073
0074 #define BOOST_PP_FILENAME_1 \
0075 <boost/fusion/container/vector/detail/cpp03/vector_n_chooser.hpp>
0076 #define BOOST_PP_ITERATION_LIMITS (1, BOOST_PP_DEC(FUSION_MAX_VECTOR_SIZE))
0077 #include BOOST_PP_ITERATE()
0078
0079 }}}
0080
0081 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0082 #pragma wave option(output: null)
0083 #endif
0084
0085 #endif
0086
0087 #endif
0088
0089
0090
0091
0092
0093
0094 #else
0095
0096 #define N BOOST_PP_ITERATION()
0097
0098 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0099 struct vector_n_chooser<
0100 BOOST_PP_ENUM_PARAMS(N, T)
0101 BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_SUB(FUSION_MAX_VECTOR_SIZE, N), void_ BOOST_PP_INTERCEPT)>
0102 {
0103 typedef BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM_PARAMS(N, T)> type;
0104 };
0105
0106 #undef N
0107 #endif