YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::MoreConvertible< _type, _tStrict, _tWeak > 模板结构体 参考

转换类型选择。 更多...

#include <ycutil.h>

Public 类型

typedef std::conditional
< std::is_convertible< _type,
_tStrict >::value, _tStrict,
_tWeak >::Result 
Result
 

静态 Public 成员函数

static Result Cast (_type o)
 

详细描述

template<typename _type, typename _tStrict, typename _tWeak>
struct YSLib::MoreConvertible< _type, _tStrict, _tWeak >

转换类型选择。

_type 能隐式转换为 _tStrictResult_tStrict, 否则 Result_tWeak

自从
build 201

在文件 ycutil.h43 行定义.

成员类型定义说明

template<typename _type, typename _tStrict, typename _tWeak>
typedef std::conditional<std::is_convertible<_type, _tStrict>::value, _tStrict, _tWeak>::Result YSLib::MoreConvertible< _type, _tStrict, _tWeak >::Result

在文件 ycutil.h46 行定义.

成员函数说明

template<typename _type, typename _tStrict, typename _tWeak>
static Result YSLib::MoreConvertible< _type, _tStrict, _tWeak >::Cast ( _type  o)
inlinestatic

在文件 ycutil.h49 行定义.


该结构体的文档由以下文件生成: