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

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

#include <ycutil.h>

Public 类型

using Result = ystdex::conditional_t< std::is_convertible< _type, _tStrict >::value, _tStrict, _tWeak >
 

静态 Public 成员函数

static Result Cast (_type o)
 

详细描述

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

转换类型选择。

自从
build 201

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

在文件 ycutil.h45 行定义.

成员类型定义说明

template<typename _type, typename _tStrict, typename _tWeak>
using YSLib::MoreConvertible< _type, _tStrict, _tWeak >::Result = ystdex::conditional_t< std::is_convertible<_type, _tStrict>::value, _tStrict, _tWeak>

在文件 ycutil.h48 行定义.

成员函数说明

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

在文件 ycutil.h51 行定义.


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