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

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

#include "type_op.hpp"
#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 >
 

命名空间

namespace  ystdex
 
namespace  ystdex::details
 

函数

template<typename _tDst , typename _tSrc >
_tDst ystdex::union_cast (_tSrc x) ynoexcept
 使用匿名联合体进行的类型转换。
 
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 _pDst , class _tSrc >
_pDst ystdex::polymorphic_crosscast (_tSrc *x)
 多态类指针交叉转换。
 
template<typename _rDst , class _tSrc >
_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++ 转换模板类。

版本
r850
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 175
创建时间:
2010-12-15 08:13:18 +0800
修改时间:
2013-03-02 07:29 +0800
文本编码:
UTF-8
模块名称:
YStandardEx::Cast

在文件 cast.hpp 中定义.