x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
list_of.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\bimap\list_of.hpp
旋转
特效
属性
历史版本
// Boost.Bimap // // Copyright (c) 2006-2007 Matias Capeletto // // 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) /// \file list_of.hpp /// \brief Include support for list constrains for the bimap container #ifndef BOOST_BIMAP_LIST_OF_HPP #define BOOST_BIMAP_LIST_OF_HPP #if defined(_MSC_VER) && (_MSC_VER>=1200) #pragma once #endif #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace bimaps { /// \brief Set Type Specification /** This struct is used to specify a set specification. It is not a container, it is just a metaprogramming facility to express the type of a set. Generally, this specification will be used in other place to create a container. It has the same syntax that an std::list instantiation, except that the allocator cannot be specified. The rationale behind this difference is that the allocator is not part of the set type specification, rather it is a container configuration parameter. \code using namespace support; BOOST_STATIC_ASSERT( is_set_type_of< list_of
>::value ) BOOST_STATIC_ASSERT ( is_same < list_of
::index_bind < KeyExtractor, Tag >::type, sequenced< tag
, KeyExtractor > >::value ) typedef bimap < list_of
, RightKeyType > bimap_with_left_type_as_list; BOOST_STATIC_ASSERT ( is_same < list_of
::map_view_bind < member_at::left, bimap_with_left_type_as_list >::type, list_map_view< member_at::left, bimap_with_left_type_as_list > >::value ) \endcode See also list_of_relation. **/ template< class Type > struct list_of : public ::boost::bimaps::detail::set_type_of_tag { /// User type, can be tagged typedef Type user_type; /// Type of the object that will be stored in the list typedef BOOST_DEDUCED_TYPENAME ::boost::bimaps::tags::support:: value_type_of
::type value_type; struct lazy_concept_checked { BOOST_CLASS_REQUIRE ( value_type, boost, AssignableConcept ); typedef list_of type; }; BOOST_BIMAP_GENERATE_INDEX_BINDER_0CP_NO_EXTRACTOR( // binds to multi_index::sequenced ) BOOST_BIMAP_GENERATE_MAP_VIEW_BINDER( // binds to views::list_map_view ) BOOST_BIMAP_GENERATE_SET_VIEW_BINDER( // binds to views::list_set_view ) typedef mpl::bool_
mutable_key; }; /// \brief List Of Relation Specification /** This struct is similar to list_of but it is bind logically to a relation. It is used in the bimap instantiation to specify the desired type of the main view. This struct implements internally a metafunction named bind_to that manages the quite complicated task of finding the right type of the set for the relation. \code template
struct bind_to { typedef -unspecified- type; }; \endcode See also list_of, is_set_type_of_relation. **/ struct list_of_relation : public ::boost::bimaps::detail::set_type_of_relation_tag { BOOST_BIMAP_GENERATE_RELATION_BINDER_0CP( // binds to list_of ) typedef mpl::bool_
left_mutable_key; typedef mpl::bool_
right_mutable_key; }; } // namespace bimaps } // namespace boost #endif // BOOST_BIMAP_LIST_OF_HPP
list_of.hpp
网页地址
文件地址
上一页
2/8
下一页
下载
( 4 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.