YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ystdex::pod_storage< _tPOD > 模板联合体 参考

#include <any.h>

ystdex::pod_storage< _tPOD > 的协作图:

Public 类型

typedef _tPOD underlying
 

Public 成员函数

void * access ()
 
const void * access () const
 
template<typename _type >
_type & access ()
 
template<typename _type >
const _type & access () const
 
 pod_storage ()=default
 
template<typename _type >
 pod_storage (_type &&x)
 
template<typename _type >
pod_storageoperator= (_type &&x)
 

Public 属性

underlying object
 
byte data [sizeof(underlying)]
 

详细描述

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
union ystdex::pod_storage< _tPOD >

在文件 any.h62 行定义.

成员类型定义说明

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
typedef _tPOD ystdex::pod_storage< _tPOD >::underlying

在文件 any.h64 行定义.

构造及析构函数说明

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
ystdex::pod_storage< _tPOD >::pod_storage ( )
default
自从
build 352
template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
template<typename _type >
ystdex::pod_storage< _tPOD >::pod_storage ( _type &&  x)
inline

在文件 any.h75 行定义.

成员函数说明

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
const void* ystdex::pod_storage< _tPOD >::access ( ) const
inline

在文件 any.h96 行定义.

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
template<typename _type >
_type& ystdex::pod_storage< _tPOD >::access ( )
inline

在文件 any.h102 行定义.

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
template<typename _type >
const _type& ystdex::pod_storage< _tPOD >::access ( ) const
inline

在文件 any.h108 行定义.

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
template<typename _type >
pod_storage& ystdex::pod_storage< _tPOD >::operator= ( _type &&  x)
inline
注解
为避免类型错误,需要确定类型时应使用显式使用 access 指定类型赋值。

在文件 any.h83 行定义.

类成员变量说明

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
byte ystdex::pod_storage< _tPOD >::data[sizeof(underlying)]

在文件 any.h69 行定义.

参考自 ystdex::pod_storage< non_aggregate_pod >::access().

template<typename _tPOD = typename aligned_storage<sizeof(void*)>::type>
underlying ystdex::pod_storage< _tPOD >::object

在文件 any.h68 行定义.


该联合体的文档由以下文件生成: