Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:47:51

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #ifndef BOOST_PP_IS_ITERATING
0008 #if !defined(FUSION_PP_MAKE_MAP_07222005_1247)
0009 #define FUSION_PP_MAKE_MAP_07222005_1247
0010 
0011 #include <boost/preprocessor/iterate.hpp>
0012 #include <boost/preprocessor/repetition/enum_params.hpp>
0013 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
0014 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
0015 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
0016 #include <boost/fusion/container/map/map.hpp>
0017 #include <boost/fusion/support/detail/as_fusion_element.hpp>
0018 #include <boost/fusion/support/pair.hpp>
0019 
0020 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0021 #include <boost/fusion/container/generation/detail/preprocessed/make_map.hpp>
0022 #else
0023 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0024 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_map" FUSION_MAX_MAP_SIZE_STR".hpp")
0025 #endif
0026 
0027 /*=============================================================================
0028     Copyright (c) 2001-2011 Joel de Guzman
0029 
0030     Distributed under the Boost Software License, Version 1.0. (See accompanying
0031     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0032 
0033     This is an auto-generated file. Do not edit!
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_VECTOR_SIZE, typename K, void_)
0049           , BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
0050                 FUSION_MAX_VECTOR_SIZE, typename D, void_)
0051           , typename Extra = void_
0052         >
0053         struct make_map;
0054 
0055         template <>
0056         struct make_map<>
0057         {
0058             typedef map<> type;
0059         };
0060     }
0061 
0062     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0063     inline map<>
0064     make_map()
0065     {
0066         return map<>();
0067     }
0068 
0069 #define BOOST_FUSION_PAIR(z, n, data)                                           \
0070     fusion::pair<                                                               \
0071         BOOST_PP_CAT(K, n)                                                      \
0072       , typename detail::as_fusion_element<BOOST_PP_CAT(D, n)>::type>
0073 
0074 #define BOOST_FUSION_MAKE_PAIR(z, n, _)                                         \
0075     fusion::make_pair<BOOST_PP_CAT(K, n)>(BOOST_PP_CAT(_, n))                   \
0076 
0077 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_map.hpp>
0078 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
0079 #include BOOST_PP_ITERATE()
0080 
0081 #undef BOOST_FUSION_PAIR
0082 #undef BOOST_FUSION_MAKE_PAIR
0083 
0084 }}
0085 
0086 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0087 #pragma wave option(output: null)
0088 #endif
0089 
0090 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
0091 
0092 #endif
0093 #else // defined(BOOST_PP_IS_ITERATING)
0094 ///////////////////////////////////////////////////////////////////////////////
0095 //
0096 //  Preprocessor vertical repetition code
0097 //
0098 ///////////////////////////////////////////////////////////////////////////////
0099 
0100 #define N BOOST_PP_ITERATION()
0101 
0102     namespace result_of
0103     {
0104         template <
0105             BOOST_PP_ENUM_PARAMS(N, typename K)
0106           , BOOST_PP_ENUM_PARAMS(N, typename D)
0107         >
0108         #define TEXT(z, n, text) , text
0109         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_)>
0110         #undef TEXT
0111         {
0112             typedef map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)> type;
0113         };
0114     }
0115 
0116     template <
0117         BOOST_PP_ENUM_PARAMS(N, typename K)
0118       , BOOST_PP_ENUM_PARAMS(N, typename D)
0119     >
0120     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0121     inline map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)>
0122     make_map(BOOST_PP_ENUM_BINARY_PARAMS(N, D, const& arg))
0123     {
0124         return map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)>(
0125             BOOST_PP_ENUM(N, BOOST_FUSION_MAKE_PAIR, arg));
0126     }
0127 
0128 #undef N
0129 #endif // defined(BOOST_PP_IS_ITERATING)
0130