File indexing completed on 2025-12-16 09:47:51
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_PP_IS_ITERATING
0009 #if !defined(FUSION_PP_MAKE_DEQUE_07162005_0243)
0010 #define FUSION_MAKE_PP_DEQUE_07162005_0243
0011
0012 #include <boost/preprocessor/iterate.hpp>
0013 #include <boost/preprocessor/repetition/enum_params.hpp>
0014 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
0015 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
0016 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
0017 #include <boost/fusion/container/deque/deque.hpp>
0018 #include <boost/fusion/support/detail/as_fusion_element.hpp>
0019
0020 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0021 #include <boost/fusion/container/generation/detail/preprocessed/make_deque.hpp>
0022 #else
0023 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0024 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_deque" FUSION_MAX_DEQUE_SIZE_STR ".hpp")
0025 #endif
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0037 #pragma wave option(preserve: 1)
0038 #endif
0039
0040 namespace boost { namespace fusion
0041 {
0042 struct void_;
0043
0044 namespace result_of
0045 {
0046 template <
0047 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
0048 FUSION_MAX_DEQUE_SIZE, typename T, void_)
0049 , typename Extra = void_
0050 >
0051 struct make_deque;
0052
0053 template <>
0054 struct make_deque<>
0055 {
0056 typedef deque<> type;
0057 };
0058 }
0059
0060 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0061 inline deque<>
0062 make_deque()
0063 {
0064 return deque<>();
0065 }
0066
0067 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
0068 typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
0069
0070 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_deque.hpp>
0071 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_DEQUE_SIZE)
0072 #include BOOST_PP_ITERATE()
0073
0074 #undef BOOST_FUSION_AS_FUSION_ELEMENT
0075
0076 }}
0077
0078 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0079 #pragma wave option(output: null)
0080 #endif
0081
0082 #endif
0083
0084 #endif
0085 #else
0086
0087
0088
0089
0090
0091
0092 #define N BOOST_PP_ITERATION()
0093
0094 namespace result_of
0095 {
0096 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0097 #define TEXT(z, n, text) , text
0098 struct make_deque< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_DEQUE_SIZE, TEXT, void_) >
0099 #undef TEXT
0100 {
0101 typedef deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
0102 };
0103 }
0104
0105 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0106 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0107 inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
0108 make_deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
0109 {
0110 return deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
0111 BOOST_PP_ENUM_PARAMS(N, arg));
0112 }
0113
0114 #undef N
0115 #endif
0116