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

取内建指针。 更多...

函数

template<typename _type >
_type * ystdex::raw (_type *const &p) ynoexcept
 
template<typename _type >
auto ystdex::raw (const std::unique_ptr< _type > &p) ynoexcept-> decltype(p.get())
 
template<typename _type >
_type * ystdex::raw (const std::shared_ptr< _type > &p) ynoexcept
 
template<typename _type >
_type * ystdex::raw (const std::weak_ptr< _type > &p) ynoexcept
 

详细描述

取内建指针。

自从
build 319

函数说明

template<typename _type >
_type* ystdex::raw ( _type *const &  p)
inline

在文件 memory.hpp67 行定义.

参考自 HandleToReference() , 以及 YSLib::Shells::Shell::IsActive().

这是这个函数的调用关系图:

template<typename _type >
auto ystdex::raw ( const std::unique_ptr< _type > &  p) -> decltype(p.get())
inline

在文件 memory.hpp72 行定义.

template<typename _type >
_type* ystdex::raw ( const std::shared_ptr< _type > &  p)
inline

在文件 memory.hpp78 行定义.

template<typename _type >
_type* ystdex::raw ( const std::weak_ptr< _type > &  p)
inline

在文件 memory.hpp83 行定义.