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

#include <any.h>

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

Public 类型

using underlying = _tPOD
 

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 , typename = ystdex::exclude_self_ctor_t<pod_storage, _type>>
 pod_storage (_type &&x)
 
template<typename _type , typename = ystdex::exclude_self_ctor_t<pod_storage, _type>>
pod_storageoperator= (_type &&x)
 

Public 属性

underlying object
 
byte data [sizeof(underlying)]
 

详细描述

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

在文件 any.h62 行定义.

成员类型定义说明

template<typename _tPOD = aligned_storage_t<sizeof(void*)>>
using ystdex::pod_storage< _tPOD >::underlying = _tPOD

在文件 any.h66 行定义.

构造及析构函数说明

template<typename _tPOD = aligned_storage_t<sizeof(void*)>>
ystdex::pod_storage< _tPOD >::pod_storage ( )
default
自从
build 352
template<typename _tPOD = aligned_storage_t<sizeof(void*)>>
template<typename _type , typename = ystdex::exclude_self_ctor_t<pod_storage, _type>>
ystdex::pod_storage< _tPOD >::pod_storage ( _type &&  x)
inline
自从
build 454

在文件 any.h77 行定义.

成员函数说明

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

在文件 any.h102 行定义.

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

在文件 any.h108 行定义.

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

在文件 any.h114 行定义.

template<typename _tPOD = aligned_storage_t<sizeof(void*)>>
template<typename _type , typename = ystdex::exclude_self_ctor_t<pod_storage, _type>>
pod_storage& ystdex::pod_storage< _tPOD >::operator= ( _type &&  x)
inline

在文件 any.h89 行定义.

类成员变量说明

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

在文件 any.h69 行定义.

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

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

在文件 any.h68 行定义.


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