x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
zip.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\fusion\algorithm\transformation\zip.hpp
旋转
特效
属性
历史版本
/*============================================================================= Copyright (c) 2001-2006 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 BOOST_PP_IS_ITERATING #if !defined(FUSION_ZIP_HPP_20060125_2058) #define FUSION_ZIP_HPP_20060125_2058 #include <boost/fusion/view/zip_view.hpp> #include <boost/fusion/adapted/mpl.hpp> #include <boost/fusion/container/vector.hpp> #include <boost/fusion/container/vector/convert.hpp> #include <boost/type_traits/add_reference.hpp> #include <boost/preprocessor/repetition/enum.hpp> #include <boost/preprocessor/repetition/enum_params.hpp> #include <boost/preprocessor/repetition/enum_binary_params.hpp> #include <boost/preprocessor/repetition/repeat_from_to.hpp> #include <boost/preprocessor/arithmetic/inc.hpp> #include <boost/preprocessor/iteration/iterate.hpp> #include <boost/mpl/vector.hpp> #include <boost/mpl/transform.hpp> #include <boost/mpl/placeholders.hpp> #if !defined(FUSION_MAX_ZIP_SEQUENCES) #define FUSION_MAX_ZIP_SEQUENCES 10 #endif namespace boost { namespace fusion { struct void_; namespace result_of { template<BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(BOOST_PP_INC(FUSION_MAX_ZIP_SEQUENCES), typename T, fusion::void_)> struct zip; } #define BOOST_PP_FILENAME_1 \ <boost/fusion/algorithm/transformation/zip.hpp> #define BOOST_PP_ITERATION_LIMITS (2, FUSION_MAX_ZIP_SEQUENCES) #include BOOST_PP_ITERATE() }} #endif #else #define ZIP_ITERATION BOOST_PP_ITERATION() namespace result_of { template< BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, typename T) > #if defined(BOOST_PARTIAL_SPECIALIZATION_EXPLICT_ARGS) #define TEXT(z, n, text) , text struct zip< BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(ZIP_ITERATION), FUSION_MAX_ZIP_SEQUENCES, TEXT, void_) > #undef TEXT #else struct zip< BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, T) > #endif { typedef mpl::vector< BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, T) > sequences; typedef typename mpl::transform<sequences, add_reference<mpl::_> >::type ref_params; typedef zip_view<typename result_of::as_vector<ref_params>::type> type; }; } #define FUSION_REF_PARAM(z, n, data) const T ## n& template<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, typename T)> inline typename result_of::zip<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, const T)>::type zip(BOOST_PP_ENUM_BINARY_PARAMS(ZIP_ITERATION, T, const& t)) { fusion::vector<BOOST_PP_ENUM(ZIP_ITERATION, FUSION_REF_PARAM, _)> seqs( BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, t)); return typename result_of::zip<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, const T)>::type( seqs); } #undef FUSION_REF_PARAM #undef ZIP_ITERATION #endif
zip.hpp
网页地址
文件地址
上一页
19/19 下一页
下载
( 3 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.