/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2006 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #ifndef ACTIV_BOOST_PP_IS_ITERATING #if !defined(ACTIV_BOOST_FUSION_ZIP_HPP_20060125_2058) #define ACTIV_BOOST_FUSION_ZIP_HPP_20060125_2058 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if !defined(ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES) #define ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES 10 #endif #define ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES_STR ACTIV_BOOST_PP_STRINGIZE(ACTIV_BOOST_FUSION_PP_ROUND_UP(ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES)) #if !defined(ACTIV_BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) #include #else #if defined(__WAVE__) && defined(ACTIV_BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/zip" ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES_STR ".hpp") #endif /*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2006 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) This is an auto-generated file. Do not edit! ==============================================================================*/ #if defined(__WAVE__) && defined(ACTIV_BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 1) #endif namespace Boost { namespace fusion { struct void_; namespace result_of { template struct zip; } #define ACTIV_BOOST_FUSION_TEXT(z, n, text) , text #define ACTIV_BOOST_PP_FILENAME_1 \ #define ACTIV_BOOST_PP_ITERATION_LIMITS (2, ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES) #include ACTIV_BOOST_PP_ITERATE() #undef ACTIV_BOOST_FUSION_TEXT }} #if defined(__WAVE__) && defined(ACTIV_BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(output: null) #endif #endif // ACTIV_BOOST_FUSION_DONT_USE_PREPROCESSED_FILES #endif #else #define ZIP_ITERATION ACTIV_BOOST_PP_ITERATION() namespace result_of { template< ACTIV_BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, typename T) > struct zip< ACTIV_BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, T) ACTIV_BOOST_PP_REPEAT_FROM_TO(ACTIV_BOOST_PP_DEC(ZIP_ITERATION), ACTIV_BOOST_FUSION_MAX_ZIP_SEQUENCES, ACTIV_BOOST_FUSION_TEXT, void_) > { typedef mpl::vector< ACTIV_BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, T) > sequences; typedef typename mpl::transform >::type ref_params; typedef zip_view::type> type; }; } #define ACTIV_BOOST_FUSION_REF_PARAM(z, n, data) const T ## n& template ACTIV_BOOST_CXX14_CONSTEXPR ACTIV_BOOST_FUSION_GPU_ENABLED inline typename result_of::zip::type zip(ACTIV_BOOST_PP_ENUM_BINARY_PARAMS(ZIP_ITERATION, T, const& t)) { fusion::vector seqs( ACTIV_BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, t)); return typename result_of::zip::type( seqs); } #undef ACTIV_BOOST_FUSION_REF_PARAM #undef ZIP_ITERATION #endif