YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Get Unique Pointer

使用指定类型指针构造 std::unique_ptr 实例。 更多...

Get Unique Pointer 的协作图:

函数

template<typename _type , typename _pSrc >
std::unique_ptr< _type > ystdex::unique_raw (const _pSrc &p)
 
template<typename _type , typename _pSrc >
std::unique_ptr< _type > ystdex::unique_raw (_pSrc &&p)
 
template<typename _type >
std::unique_ptr< _type > ystdex::unique_raw (_type *p)
 
template<typename _type >
std::unique_ptr< _type > ystdex::unique_raw (nullptr_t) ynoexcept
 

详细描述

使用指定类型指针构造 std::unique_ptr 实例。

模板参数
_type被指向类型。
注解
不检查指针是否有效。
自从
build 212

函数说明

template<typename _type , typename _pSrc >
std::unique_ptr<_type> ystdex::unique_raw ( const _pSrc &  p)
inline
模板参数
_pSrc指定指针类型。
前置条件
静态断言: _pSrc 是内建指针。

在文件 memory.hpp131 行定义.

template<typename _type , typename _pSrc >
std::unique_ptr<_type> ystdex::unique_raw ( _pSrc &&  p)
inline
模板参数
_pSrc指定指针类型。
前置条件
静态断言: _pSrc 是内建指针。

在文件 memory.hpp143 行定义.

template<typename _type >
std::unique_ptr<_type> ystdex::unique_raw ( _type *  p)
inline

在文件 memory.hpp151 行定义.

template<typename _type >
std::unique_ptr<_type> ystdex::unique_raw ( nullptr_t  )
inline
注解
使用空指针构造空实例。
自从
build 319

在文件 memory.hpp161 行定义.