x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
storage.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\bind\storage.hpp
旋转
特效
属性
历史版本
#ifndef BOOST_BIND_STORAGE_HPP_INCLUDED #define BOOST_BIND_STORAGE_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // // bind/storage.hpp // // boost/bind.hpp support header, optimized storage // // Copyright (c) 2006 Peter Dimov // // 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 // // See http://www.boost.org/libs/bind/bind.html for documentation. // #include
#include
#ifdef BOOST_MSVC # pragma warning(push) # pragma warning(disable: 4512) // assignment operator could not be generated #endif namespace boost { namespace _bi { // 1 template
struct storage1 { explicit storage1( A1 a1 ): a1_( a1 ) {} template
void accept(V & v) const { BOOST_BIND_VISIT_EACH(v, a1_, 0); } A1 a1_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) && !defined( __BORLANDC__ ) template
struct storage1< boost::arg
> { explicit storage1( boost::arg
) {} template
void accept(V &) const { } static boost::arg
a1_() { return boost::arg
(); } }; template
struct storage1< boost::arg
(*) () > { explicit storage1( boost::arg
(*) () ) {} template
void accept(V &) const { } static boost::arg
a1_() { return boost::arg
(); } }; #endif // 2 template
struct storage2: public storage1
{ typedef storage1
inherited; storage2( A1 a1, A2 a2 ): storage1
( a1 ), a2_( a2 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a2_, 0); } A2 a2_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage2< A1, boost::arg
>: public storage1
{ typedef storage1
inherited; storage2( A1 a1, boost::arg
): storage1
( a1 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a2_() { return boost::arg
(); } }; template
struct storage2< A1, boost::arg
(*) () >: public storage1
{ typedef storage1
inherited; storage2( A1 a1, boost::arg
(*) () ): storage1
( a1 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a2_() { return boost::arg
(); } }; #endif // 3 template
struct storage3: public storage2< A1, A2 > { typedef storage2
inherited; storage3( A1 a1, A2 a2, A3 a3 ): storage2
( a1, a2 ), a3_( a3 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a3_, 0); } A3 a3_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage3< A1, A2, boost::arg
>: public storage2< A1, A2 > { typedef storage2
inherited; storage3( A1 a1, A2 a2, boost::arg
): storage2
( a1, a2 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a3_() { return boost::arg
(); } }; template
struct storage3< A1, A2, boost::arg
(*) () >: public storage2< A1, A2 > { typedef storage2
inherited; storage3( A1 a1, A2 a2, boost::arg
(*) () ): storage2
( a1, a2 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a3_() { return boost::arg
(); } }; #endif // 4 template
struct storage4: public storage3< A1, A2, A3 > { typedef storage3
inherited; storage4( A1 a1, A2 a2, A3 a3, A4 a4 ): storage3
( a1, a2, a3 ), a4_( a4 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a4_, 0); } A4 a4_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage4< A1, A2, A3, boost::arg
>: public storage3< A1, A2, A3 > { typedef storage3
inherited; storage4( A1 a1, A2 a2, A3 a3, boost::arg
): storage3
( a1, a2, a3 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a4_() { return boost::arg
(); } }; template
struct storage4< A1, A2, A3, boost::arg
(*) () >: public storage3< A1, A2, A3 > { typedef storage3
inherited; storage4( A1 a1, A2 a2, A3 a3, boost::arg
(*) () ): storage3
( a1, a2, a3 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a4_() { return boost::arg
(); } }; #endif // 5 template
struct storage5: public storage4< A1, A2, A3, A4 > { typedef storage4
inherited; storage5( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5 ): storage4
( a1, a2, a3, a4 ), a5_( a5 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a5_, 0); } A5 a5_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage5< A1, A2, A3, A4, boost::arg
>: public storage4< A1, A2, A3, A4 > { typedef storage4
inherited; storage5( A1 a1, A2 a2, A3 a3, A4 a4, boost::arg
): storage4
( a1, a2, a3, a4 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a5_() { return boost::arg
(); } }; template
struct storage5< A1, A2, A3, A4, boost::arg
(*) () >: public storage4< A1, A2, A3, A4 > { typedef storage4
inherited; storage5( A1 a1, A2 a2, A3 a3, A4 a4, boost::arg
(*) () ): storage4
( a1, a2, a3, a4 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a5_() { return boost::arg
(); } }; #endif // 6 template
struct storage6: public storage5< A1, A2, A3, A4, A5 > { typedef storage5
inherited; storage6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6 ): storage5
( a1, a2, a3, a4, a5 ), a6_( a6 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a6_, 0); } A6 a6_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage6< A1, A2, A3, A4, A5, boost::arg
>: public storage5< A1, A2, A3, A4, A5 > { typedef storage5
inherited; storage6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, boost::arg
): storage5
( a1, a2, a3, a4, a5 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a6_() { return boost::arg
(); } }; template
struct storage6< A1, A2, A3, A4, A5, boost::arg
(*) () >: public storage5< A1, A2, A3, A4, A5 > { typedef storage5
inherited; storage6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, boost::arg
(*) () ): storage5
( a1, a2, a3, a4, a5 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a6_() { return boost::arg
(); } }; #endif // 7 template
struct storage7: public storage6< A1, A2, A3, A4, A5, A6 > { typedef storage6
inherited; storage7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7 ): storage6
( a1, a2, a3, a4, a5, a6 ), a7_( a7 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a7_, 0); } A7 a7_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage7< A1, A2, A3, A4, A5, A6, boost::arg
>: public storage6< A1, A2, A3, A4, A5, A6 > { typedef storage6
inherited; storage7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, boost::arg
): storage6
( a1, a2, a3, a4, a5, a6 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a7_() { return boost::arg
(); } }; template
struct storage7< A1, A2, A3, A4, A5, A6, boost::arg
(*) () >: public storage6< A1, A2, A3, A4, A5, A6 > { typedef storage6
inherited; storage7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, boost::arg
(*) () ): storage6
( a1, a2, a3, a4, a5, a6 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a7_() { return boost::arg
(); } }; #endif // 8 template
struct storage8: public storage7< A1, A2, A3, A4, A5, A6, A7 > { typedef storage7
inherited; storage8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8 ): storage7
( a1, a2, a3, a4, a5, a6, a7 ), a8_( a8 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a8_, 0); } A8 a8_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage8< A1, A2, A3, A4, A5, A6, A7, boost::arg
>: public storage7< A1, A2, A3, A4, A5, A6, A7 > { typedef storage7
inherited; storage8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, boost::arg
): storage7
( a1, a2, a3, a4, a5, a6, a7 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a8_() { return boost::arg
(); } }; template
struct storage8< A1, A2, A3, A4, A5, A6, A7, boost::arg
(*) () >: public storage7< A1, A2, A3, A4, A5, A6, A7 > { typedef storage7
inherited; storage8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, boost::arg
(*) () ): storage7
( a1, a2, a3, a4, a5, a6, a7 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a8_() { return boost::arg
(); } }; #endif // 9 template
struct storage9: public storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { typedef storage8
inherited; storage9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9 ): storage8
( a1, a2, a3, a4, a5, a6, a7, a8 ), a9_( a9 ) {} template
void accept(V & v) const { inherited::accept(v); BOOST_BIND_VISIT_EACH(v, a9_, 0); } A9 a9_; }; #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) template
struct storage9< A1, A2, A3, A4, A5, A6, A7, A8, boost::arg
>: public storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { typedef storage8
inherited; storage9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, boost::arg
): storage8
( a1, a2, a3, a4, a5, a6, a7, a8 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a9_() { return boost::arg
(); } }; template
struct storage9< A1, A2, A3, A4, A5, A6, A7, A8, boost::arg
(*) () >: public storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { typedef storage8
inherited; storage9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, boost::arg
(*) () ): storage8
( a1, a2, a3, a4, a5, a6, a7, a8 ) {} template
void accept(V & v) const { inherited::accept(v); } static boost::arg
a9_() { return boost::arg
(); } }; #endif } // namespace _bi } // namespace boost #ifdef BOOST_MSVC # pragma warning(default: 4512) // assignment operator could not be generated # pragma warning(pop) #endif #endif // #ifndef BOOST_BIND_STORAGE_HPP_INCLUDED
storage.hpp
网页地址
文件地址
上一页
12/12 下一页
下载
( 13 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.