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

#include <type_op.hpp>

静态 Public 属性

static const bool value = decltype(test<_type>(nullptr))::value
 

静态 Private 成员函数

template<typename _type2 >
static std::true_type test (ystdex::empty_base< typename _type2::value > *)
 
template<typename _type2 >
static std::false_type test (...)
 

详细描述

template<class _type>
struct ystdex::details::has_mem_value< _type >

自从
build 454 as workaround for Visual C++ 2013
build 440

测试包含 value 成员。

在文件 type_op.hpp440 行定义.

成员函数说明

template<class _type >
template<typename _type2 >
static std::true_type ystdex::details::has_mem_value< _type >::test ( ystdex::empty_base< typename _type2::value > *  )
staticprivate
template<class _type >
template<typename _type2 >
static std::false_type ystdex::details::has_mem_value< _type >::test (   ...)
staticprivate

类成员变量说明

template<class _type >
const bool ystdex::details::has_mem_value< _type >::value = decltype(test<_type>(nullptr))::value
static

在文件 type_op.hpp440 行定义.


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