MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
rank< T > 模板结构体 参考

查询数组的维度数 更多...

#include <type_traits.hpp>

类 rank< T > 继承关系图:
[图例]

额外继承的成员函数

Public 类型 继承自 integral_constant< size_t, 0 >
using value_type
 值类型
using type
 自身类型
Public 成员函数 继承自 integral_constant< size_t, 0 >
constexpr operator value_type () const noexcept
 显式转换到值类型的运算符
MSTL_NODISCARD constexpr value_type operator() () const noexcept
 函数调用运算符,用于获取值
静态 Public 属性 继承自 integral_constant< size_t, 0 >
static constexpr size_t value
 存储的整数值

详细描述

template<typename T>
struct rank< T >

查询数组的维度数

模板参数
T数组类型

对于非数组类型返回0,对于数组类型返回其维度数。

在文件 type_traits.hpp1218 行定义.


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