Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:10:34

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_LIST_07192005_1239)
0009 #define FUSION_PP_MAKE_LIST_07192005_1239
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/list/list.hpp>
0017 #include <boost/fusion/support/detail/as_fusion_element.hpp>
0018 
0019 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0020 #include <boost/fusion/container/generation/detail/preprocessed/make_list.hpp>
0021 #else
0022 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0023 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_list" FUSION_MAX_LIST_SIZE_STR".hpp")
0024 #endif
0025 
0026 /*=============================================================================
0027     Copyright (c) 2001-2011 Joel de Guzman
0028 
0029     Distributed under the Boost Software License, Version 1.0. (See accompanying
0030     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0031 
0032     This is an auto-generated file. Do not edit!
0033 ==============================================================================*/
0034 
0035 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0036 #pragma wave option(preserve: 1)
0037 #endif
0038 
0039 namespace boost { namespace fusion
0040 {
0041     struct void_;
0042 
0043     namespace result_of
0044     {
0045         template <
0046             BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
0047                 FUSION_MAX_LIST_SIZE, typename T, void_)
0048           , typename Extra = void_
0049         >
0050         struct make_list;
0051 
0052         template <>
0053         struct make_list<>
0054         {
0055             typedef list<> type;
0056         };
0057     }
0058 
0059     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0060     inline list<>
0061     make_list()
0062     {
0063         return list<>();
0064     }
0065 
0066 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data)                               \
0067     typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
0068 
0069 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_list.hpp>
0070 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_LIST_SIZE)
0071 #include BOOST_PP_ITERATE()
0072 
0073 #undef BOOST_FUSION_AS_FUSION_ELEMENT
0074 
0075 }}
0076 
0077 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0078 #pragma wave option(output: null)
0079 #endif
0080 
0081 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
0082 
0083 #endif
0084 #else // defined(BOOST_PP_IS_ITERATING)
0085 ///////////////////////////////////////////////////////////////////////////////
0086 //
0087 //  Preprocessor vertical repetition code
0088 //
0089 ///////////////////////////////////////////////////////////////////////////////
0090 
0091 #define N BOOST_PP_ITERATION()
0092 
0093     namespace result_of
0094     {
0095         template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0096         #define TEXT(z, n, text) , text
0097         struct make_list< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_LIST_SIZE, TEXT, void_) >
0098         #undef TEXT
0099         {
0100             typedef list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
0101         };
0102     }
0103 
0104     template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0105     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0106     inline list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
0107     make_list(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
0108     {
0109         return list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
0110             BOOST_PP_ENUM_PARAMS(N, arg));
0111     }
0112 
0113 #undef N
0114 #endif // defined(BOOST_PP_IS_ITERATING)
0115