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

#include <type_op.hpp>

类 ystdex::details::has_subscription< _type1, _type2 > 继承关系图:

静态 Public 属性

static const bool value = decltype(test<_type1>(0))::value
 

静态 Private 成员函数

template<typename _type >
static std::true_type test (ystdex::enable_if_t<(!is_void< decltype(std::declval< _type >()[std::declval< _type2 >()])>::value), int >)
 
template<typename >
static std::false_type test (...)
 

详细描述

template<typename _type1, typename _type2>
struct ystdex::details::has_subscription< _type1, _type2 >

自从
build 399

在文件 type_op.hpp476 行定义.

成员函数说明

template<typename _type1 , typename _type2 >
template<typename _type >
static std::true_type ystdex::details::has_subscription< _type1, _type2 >::test ( ystdex::enable_if_t<(!is_void< decltype(std::declval< _type >()[std::declval< _type2 >()])>::value), int >  )
staticprivate
template<typename _type1 , typename _type2 >
template<typename >
static std::false_type ystdex::details::has_subscription< _type1, _type2 >::test (   ...)
staticprivate

类成员变量说明

template<typename _type1 , typename _type2 >
const bool ystdex::details::has_subscription< _type1, _type2 >::value = decltype(test<_type1>(0))::value
static

在文件 type_op.hpp476 行定义.


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