YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
转换类型选择。 更多...
#include <ycutil.h>
Public 类型 | |
using | Result = ystdex::conditional_t< std::is_convertible< _type, _tStrict >::value, _tStrict, _tWeak > |
静态 Public 成员函数 | |
static Result | Cast (_type o) |
转换类型选择。
若 _type
能隐式转换为 _tStrict
则 Result
为 _tStrict,
否则 Result
为 _tWeak
。
using YSLib::MoreConvertible< _type, _tStrict, _tWeak >::Result = ystdex::conditional_t< std::is_convertible<_type, _tStrict>::value, _tStrict, _tWeak> |
|
inlinestatic |