x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
unfused_generic.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\fusion\functional\adapter\unfused_generic.hpp
旋转
特效
属性
历史版本
/*============================================================================= Copyright (c) 2006-2007 Tobias Schwinger Use modification and distribution are subject to 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). ==============================================================================*/ #if !defined(BOOST_FUSION_FUNCTIONAL_ADAPTER_UNFUSED_GENERIC_HPP_INCLUDED) #if !defined(BOOST_PP_IS_ITERATING) #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion { template
class unfused_generic; //----- ---- --- -- - - - - template
class unfused_generic { Function fnc_transformed; typedef typename detail::qf_c
::type function_c; typedef typename detail::qf
::type function; typedef typename detail::call_param
::type func_const_fwd_t; public: inline explicit unfused_generic(func_const_fwd_t f = Function()) : fnc_transformed(f) { } template
struct result; typedef typename boost::result_of< function_c(fusion::vector0 &) >::type call_const_0_result; inline call_const_0_result operator()() const { fusion::vector0 arg; return this->fnc_transformed(arg); } typedef typename boost::result_of< function (fusion::vector0 &) >::type call_0_result; inline call_0_result operator()() { fusion::vector0 arg; return this->fnc_transformed(arg); } #define BOOST_FUSION_CODE(tpl_params,arg_types,params,args) \ template
\ inline typename boost::result_of
& )>::type \ operator()(params) const \ { \ BOOST_PP_CAT(fusion::vector,N)
arg(args); \ return this->fnc_transformed(arg); \ } \ template
\ inline typename boost::result_of
& )>::type \ operator()(params) \ { \ BOOST_PP_CAT(fusion::vector,N)
arg(args); \ return this->fnc_transformed(arg); \ } #define BOOST_PP_INDIRECT_SELF \
#define BOOST_PP_FILENAME_1 \
#define BOOST_PP_ITERATION_LIMITS \ (1,BOOST_FUSION_UNFUSED_GENERIC_MAX_ARITY) #define N BOOST_PP_ITERATION_1 #include BOOST_PP_ITERATE() #undef N #undef BOOST_FUSION_CODE }; }} namespace boost { template
struct result_of
const ()> { typedef typename boost::fusion::unfused_generic
::call_const_0_result type; }; template
struct result_of
()> { typedef typename boost::fusion::unfused_generic
::call_0_result type; }; } #define BOOST_FUSION_FUNCTIONAL_ADAPTER_UNFUSED_GENERIC_HPP_INCLUDED #else // defined(BOOST_PP_IS_ITERATING) /////////////////////////////////////////////////////////////////////////////// // // Preprocessor vertical repetition code // /////////////////////////////////////////////////////////////////////////////// #include
#if BOOST_PP_SLOT_1() == 0 template
struct result < Self const (BOOST_PP_ENUM_PARAMS(N,T)) > : boost::result_of
::type BOOST_PP_INTERCEPT) > & )> { }; template
struct result < Self(BOOST_PP_ENUM_PARAMS(N,T)) > : boost::result_of
::type BOOST_PP_INTERCEPT) > & )> { }; #endif #if BOOST_WORKAROUND(BOOST_MSVC,BOOST_TESTED_AT(1400)) template
inline typename boost::result_of
& )>::type operator()(BOOST_PP_ENUM_BINARY_PARAMS(N,PT,a)) const { BOOST_PP_CAT(fusion::vector,N)
arg(BOOST_PP_ENUM_PARAMS(N,a)); return this->fnc_transformed(arg); } template
inline typename boost::result_of
& )>::type operator()(BOOST_PP_ENUM_BINARY_PARAMS(N,PT,a)) { BOOST_PP_CAT(fusion::vector,N)
arg(BOOST_PP_ENUM_PARAMS(N,a)); return this->fnc_transformed(arg); } #else BOOST_FUSION_CODE(BOOST_PP_ENUM_PARAMS(N,typename T), BOOST_PP_ENUM_PARAMS(N,PT), BOOST_PP_ENUM_BINARY_PARAMS(N,PT,a), BOOST_PP_ENUM_PARAMS(N,a) ) // ...generates uglier code but is faster - it caches ENUM_* #endif #include
#endif // defined(BOOST_PP_IS_ITERATING) #endif
unfused_generic.hpp
网页地址
文件地址
上一页
5/8
下一页
下载
( 6 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.