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_VECTOR_TIE_07192005_1242)
0009 #define FUSION_VECTOR_TIE_07192005_1242
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/vector/vector.hpp>
0018 
0019 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0020 #include <boost/fusion/container/generation/detail/preprocessed/vector_tie.hpp>
0021 #else
0022 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0023 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/vector_tie" FUSION_MAX_VECTOR_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_VECTOR_SIZE, typename T, void_)
0048           , typename Extra = void_
0049         >
0050         struct vector_tie;
0051     }
0052 
0053 #define BOOST_FUSION_REF(z, n, data) BOOST_PP_CAT(T, n)&
0054 
0055 #define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_vector_tie.hpp>
0056 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
0057 #include BOOST_PP_ITERATE()
0058 
0059 #undef BOOST_FUSION_REF
0060 }}
0061 
0062 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0063 #pragma wave option(output: null)
0064 #endif
0065 
0066 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
0067 
0068 #endif
0069 #else // defined(BOOST_PP_IS_ITERATING)
0070 ///////////////////////////////////////////////////////////////////////////////
0071 //
0072 //  Preprocessor vertical repetition code
0073 //
0074 ///////////////////////////////////////////////////////////////////////////////
0075 
0076 #define N BOOST_PP_ITERATION()
0077 
0078     namespace result_of
0079     {
0080         template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0081         #define TEXT(z, n, text) , text
0082         struct vector_tie< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_VECTOR_SIZE, TEXT, void_) >
0083         #undef TEXT
0084         {
0085             typedef vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> type;
0086         };
0087     }
0088 
0089     template <BOOST_PP_ENUM_PARAMS(N, typename T)>
0090     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0091     inline vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
0092     vector_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
0093     {
0094         return vector<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>(
0095             BOOST_PP_ENUM_PARAMS(N, arg));
0096     }
0097 
0098 #undef N
0099 #endif // defined(BOOST_PP_IS_ITERATING)
0100