YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
cast.hpp 文件参考

C++ 转换模板。 更多...

#include "type_op.hpp"
#include "cassert.h"
#include <memory>
#include <typeinfo>
#include <initializer_list>
cast.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  ystdex::details::general_polymorphic_cast_helper< _tFrom, _tTo, _bNonVirtualDownCast >
 
struct  ystdex::details::general_polymorphic_cast_helper< _tFrom, _tTo, false >
 
struct  ystdex::details::general_cast_helper< _tFrom, _tTo, _bUseStaticCast >
 
struct  ystdex::details::general_cast_helper< _tFrom, _tTo, false >
 
struct  ystdex::details::general_cast_helper< _type, _type, true >
 
struct  ystdex::details::general_cast_helper< _type, _type, false >
 
struct  ystdex::details::general_cast_type_helper< _tFrom, _tTo >
 

命名空间

 ystdex
 
 ystdex::details
 

函数

template<typename _tDst , typename _tSrc >
_tDst ystdex::union_cast (_tSrc x)
 使用匿名联合体进行的类型转换。 更多...
 
template<typename _tDst , typename... _tSrc>
std::initializer_list< _tDst > ystdex::initializer_cast (_tSrc &&...x)
 初值符列表转换。 更多...
 
template<typename _pDst , class _tSrc >
_pDst ystdex::polymorphic_cast (_tSrc *x)
 多态类指针类型转换。 更多...
 
template<typename _pDst , class _tSrc >
_pDst ystdex::polymorphic_downcast (_tSrc *x)
 多态类指针向派生类指针转换。 更多...
 
template<typename _rDst , class _tSrc >
_rDst ystdex::polymorphic_downcast (_tSrc &x)
 
template<typename _rDst , class _tSrc >
enable_if_t<!is_reference
< _tSrc >::value, _rDst > 
ystdex::polymorphic_downcast (_tSrc &&x)
 
template<typename _pDst , class _tSrc >
_pDst ystdex::polymorphic_crosscast (_tSrc *x)
 多态类指针交叉转换。 更多...
 
template<typename _rDst , class _tSrc >
_rDst ystdex::polymorphic_crosscast (_tSrc &x)
 
template<typename _rDst , class _tSrc >
enable_if_t<!is_reference
< _tSrc >::value, _rDst > 
ystdex::polymorphic_crosscast (_tSrc &&x)
 
template<typename _tDst , typename _tSrc >
_tDst ystdex::general_cast (_tSrc *x)
 一般类型转换。 更多...
 
template<typename _tDst , typename _tSrc >
_tDst ystdex::general_cast (_tSrc &x)
 
template<typename _tDst , typename _tSrc >
const _tDst ystdex::general_cast (const _tSrc &x)
 

详细描述

C++ 转换模板。

版本
r934
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 175
创建时间:
2010-12-15 08:13:18 +0800
修改时间:
2014-05-23 09:58 +0800
文本编码:
UTF-8
模块名称:
YStandardEx::Cast

在文件 cast.hpp 中定义.