x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
make_adaptable.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\bind\make_adaptable.hpp
旋转
特效
属性
历史版本
#ifndef BOOST_BIND_MAKE_ADAPTABLE_HPP_INCLUDED #define BOOST_BIND_MAKE_ADAPTABLE_HPP_INCLUDED // // make_adaptable.hpp // // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. // // 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) // namespace boost { namespace _bi { template
class af0 { public: typedef R result_type; explicit af0(F f): f_(f) { } result_type operator()() { return f_(); } result_type operator()() const { return f_(); } private: F f_; }; template
class af1 { public: typedef R result_type; typedef A1 argument_type; typedef A1 arg1_type; explicit af1(F f): f_(f) { } result_type operator()(A1 a1) { return f_(a1); } result_type operator()(A1 a1) const { return f_(a1); } private: F f_; }; template
class af2 { public: typedef R result_type; typedef A1 first_argument_type; typedef A2 second_argument_type; typedef A1 arg1_type; typedef A2 arg2_type; explicit af2(F f): f_(f) { } result_type operator()(A1 a1, A2 a2) { return f_(a1, a2); } result_type operator()(A1 a1, A2 a2) const { return f_(a1, a2); } private: F f_; }; template
class af3 { public: typedef R result_type; typedef A1 arg1_type; typedef A2 arg2_type; typedef A3 arg3_type; explicit af3(F f): f_(f) { } result_type operator()(A1 a1, A2 a2, A3 a3) { return f_(a1, a2, a3); } result_type operator()(A1 a1, A2 a2, A3 a3) const { return f_(a1, a2, a3); } private: F f_; }; template
class af4 { public: typedef R result_type; typedef A1 arg1_type; typedef A2 arg2_type; typedef A3 arg3_type; typedef A4 arg4_type; explicit af4(F f): f_(f) { } result_type operator()(A1 a1, A2 a2, A3 a3, A4 a4) { return f_(a1, a2, a3, a4); } result_type operator()(A1 a1, A2 a2, A3 a3, A4 a4) const { return f_(a1, a2, a3, a4); } private: F f_; }; } // namespace _bi template
_bi::af0
make_adaptable(F f) { return _bi::af0
(f); } template
_bi::af1
make_adaptable(F f) { return _bi::af1
(f); } template
_bi::af2
make_adaptable(F f) { return _bi::af2
(f); } template
_bi::af3
make_adaptable(F f) { return _bi::af3
(f); } template
_bi::af4
make_adaptable(F f) { return _bi::af4
(f); } } // namespace boost #endif // #ifndef BOOST_BIND_MAKE_ADAPTABLE_HPP_INCLUDED
make_adaptable.hpp
网页地址
文件地址
上一页
6/12
下一页
下载
( 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.