x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
lookup_key.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\fusion\container\set\detail\lookup_key.hpp
旋转
特效
属性
历史版本
/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman 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) ==============================================================================*/ #if !defined(FUSION_LOOKUP_KEY_09162005_1111) #define FUSION_LOOKUP_KEY_09162005_1111 #include <boost/mpl/int.hpp> #include <boost/type_traits/add_const.hpp> #include <boost/type_traits/add_reference.hpp> #include <boost/fusion/support/detail/unknown_key.hpp> namespace boost { namespace fusion { struct void_; }} namespace boost { namespace fusion { namespace detail { template <typename T> struct set_data_type { typedef typename add_reference<T>::type type; }; template <> struct set_data_type<void_> { typedef void_& type; }; template <typename T> struct set_const_data_type { typedef typename add_reference< typename add_const<T>::type >::type type; }; template <> struct set_const_data_type<void_> { typedef void_ const& type; }; template <typename T> struct set_value_type { typedef T type; }; template <> struct set_value_type<void_> { typedef void_ type; }; template <typename T, int index> struct set_key_type { typedef T type; }; template <int index> struct set_key_type<void_, index> { typedef unknown_key<index> type; }; template <int index, typename RT, typename Key, typename Vector> struct set_lookup_key { static RT call(Vector& vec) { return vec.at_impl(mpl::int_<index>()); } }; template <int index, typename Vector> struct set_lookup_key<index, void_&, unknown_key<index>, Vector> { static void_& call(Vector& vec); // intentionally undefined }; }}} #endif
lookup_key.hpp
网页地址
文件地址
上一页
6/9
下一页
下载
( 2 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.