x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
ptr_set.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\ptr_container\ptr_set.hpp
旋转
特效
属性
历史版本
// // Boost.Pointer Container // // Copyright Thorsten Ottosen 2003-2005. Use, modification and // distribution is subject to 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 http://www.boost.org/libs/ptr_container/ // #ifndef BOOST_PTR_CONTAINER_PTR_SET_HPP #define BOOST_PTR_CONTAINER_PTR_SET_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif #include
#include
#include
namespace boost { template < class Key, class Compare = std::less
, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator
> class ptr_set : public ptr_set_adapter< Key, std::set
,Allocator>, CloneAllocator > { typedef ptr_set_adapter< Key, std::set
,Allocator>, CloneAllocator > base_type; typedef ptr_set
this_type; public: explicit ptr_set( const Compare& comp = Compare(), const Allocator& a = Allocator() ) : base_type( comp, a ) { } template< typename InputIterator > ptr_set( InputIterator first, InputIterator last, const Compare& comp = Compare(), const Allocator& a = Allocator() ) : base_type( first, last, comp, a ) { } BOOST_PTR_CONTAINER_DEFINE_RELEASE_AND_CLONE( ptr_set, base_type, this_type ); BOOST_PTR_CONTAINER_DEFINE_COPY_CONSTRUCTORS( ptr_set, base_type ) }; template < class Key, class Compare = std::less
, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator
> class ptr_multiset : public ptr_multiset_adapter< Key, std::multiset
,Allocator>, CloneAllocator > { typedef ptr_multiset_adapter< Key, std::multiset
,Allocator>, CloneAllocator > base_type; typedef ptr_multiset
this_type; public: explicit ptr_multiset( const Compare& comp = Compare(), const Allocator& a = Allocator() ) : base_type( comp, a ) { } template< typename InputIterator > ptr_multiset( InputIterator first, InputIterator last, const Compare& comp = Compare(), const Allocator& a = Allocator() ) : base_type( first, last, comp, a ) { } BOOST_PTR_CONTAINER_DEFINE_RELEASE_AND_CLONE( ptr_multiset, base_type, this_type ); BOOST_PTR_CONTAINER_DEFINE_COPY_CONSTRUCTORS( ptr_multiset, base_type ); }; ///////////////////////////////////////////////////////////////////////// // clonability template< typename K, typename C, typename CA, typename A > inline ptr_set
* new_clone( const ptr_set
& r ) { return r.clone().release(); } template< typename K, typename C, typename CA, typename A > inline ptr_multiset
* new_clone( const ptr_multiset
& r ) { return r.clone().release(); } ///////////////////////////////////////////////////////////////////////// // swap template< typename K, typename C, typename CA, typename A > inline void swap( ptr_set
& l, ptr_set
& r ) { l.swap(r); } template< typename K, typename C, typename CA, typename A > inline void swap( ptr_multiset
& l, ptr_multiset
& r ) { l.swap(r); } } #endif
ptr_set.hpp
网页地址
文件地址
上一页
12/21
下一页
下载
( 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.