x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
actions.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\lambda\detail\actions.hpp
旋转
特效
属性
历史版本
// -- Boost Lambda Library - actions.hpp ---------------------------------- // Copyright (C) 1999, 2000 Jaakko J�rvi (jaakko.jarvi@cs.utu.fi) // // 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) // For more information, see www.boost.org // ---------------------------------------------------------------- #ifndef BOOST_LAMBDA_ACTIONS_HPP #define BOOST_LAMBDA_ACTIONS_HPP namespace boost { namespace lambda { template
class action; // these need to be defined here, since the corresponding lambda // functions are members of lambda_functor classes class assignment_action {}; class subscript_action {}; template
class other_action; // action for specifying the explicit return type template
class explicit_return_type_action {}; // action for preventing the expansion of a lambda expression struct protect_action {}; // must be defined here, comma is a special case struct comma_action {}; // actions, for which the existence of protect is checked in return type // deduction. template
struct is_protectable { BOOST_STATIC_CONSTANT(bool, value = false); }; // NOTE: comma action is protectable. Other protectable actions // are listed in operator_actions.hpp template<> struct is_protectable
> { BOOST_STATIC_CONSTANT(bool, value = true); }; namespace detail { // this type is used in return type deductions to signal that deduction // did not find a result. It does not necessarily mean an error, it commonly // means that something else should be tried. class unspecified {}; } // function action is a special case: bind functions can be called with // the return type specialized explicitly e.g. bind
(foo); // If this call syntax is used, the return type is stored in the latter // argument of function_action template. Otherwise the argument gets the type // 'unspecified'. // This argument is only relevant in the return type deduction code template
class function_action {}; template
class function_action<1, T> { public: template
static RET apply(A1& a1) { return function_adaptor
::type>:: template apply
(a1); } }; template
class function_action<2, T> { public: template
static RET apply(A1& a1, A2& a2) { return function_adaptor
::type>:: template apply
(a1, a2); } }; template
class function_action<3, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3) { return function_adaptor
::type>:: template apply
(a1, a2, a3); } }; template
class function_action<4, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4); } }; template
class function_action<5, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4, A5& a5) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4, a5); } }; template
class function_action<6, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4, A5& a5, A6& a6) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4, a5, a6); } }; template
class function_action<7, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4, A5& a5, A6& a6, A7& a7) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4, a5, a6, a7); } }; template
class function_action<8, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4, A5& a5, A6& a6, A7& a7, A8& a8) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4, a5, a6, a7, a8); } }; template
class function_action<9, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4, A5& a5, A6& a6, A7& a7, A8& a8, A9& a9) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4, a5, a6, a7, a8, a9); } }; template
class function_action<10, T> { public: template
static RET apply(A1& a1, A2& a2, A3& a3, A4& a4, A5& a5, A6& a6, A7& a7, A8& a8, A9& a9, A10& a10) { return function_adaptor
::type>:: template apply
(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); } }; } // namespace lambda } // namespace boost #endif
actions.hpp
网页地址
文件地址
上一页 1/20
下一页
下载
( 5 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.