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_LIST_TIE_07192005_0109)
0009 #define FUSION_PP_LIST_TIE_07192005_0109
0010 
0011 #include <boost/preprocessor/iterate.hpp>
0012 #include <boost/preprocessor/cat.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/list/list.hpp>
0018 
0019 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0020 #include <boost/fusion/container/generation/detail/preprocessed/list_tie.hpp>
0021 #else
0022 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0023 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/list_tie" 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 list_tie;
0051     }
0052 
0053 // $$$ shouldn't we remove_reference first to allow references? $$$
0054 #define BOOST_FUSION_REF(z, n, data) BOOST_PP_CAT(T, n)&
0055 
0056 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_list_tie.hpp>
0057 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_LIST_SIZE)
0058 #include BOOST_PP_ITERATE()
0059 
0060 #undef BOOST_FUSION_REF
0061 
0062 }}
0063 
0064 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0065 #pragma wave option(output: null)
0066 #endif
0067 
0068 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
0069 
0070 #endif
0071 #else // defined(BOOST_PP_IS_ITERATING)
0072 ///////////////////////////////////////////////////////////////////////////////
0073 //
0074 //  Preprocessor vertical repetition code
0075 //
0076 ///////////////////////////////////////////////////////////////////////////////
0077 
0078 #define N BOOST_PP_ITERATION()
0079 
0080     namespace result_of
0081     {
0082         template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0083         #define TEXT(z, n, text) , text
0084         struct list_tie< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_LIST_SIZE, TEXT, void_) >
0085         #undef TEXT
0086         {
0087             typedef list<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> type;
0088         };
0089     }
0090 
0091     template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0092     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0093     inline list<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
0094     list_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
0095     {
0096         return list<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>(
0097             BOOST_PP_ENUM_PARAMS(N, arg));
0098     }
0099 
0100 #undef N
0101 #endif // defined(BOOST_PP_IS_ITERATING)
0102