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

判断类型是否为有效的哈希函数 更多...

#include <hash.hpp>

类 is_hash< Func, Arg, Dummy > 继承关系图:
[图例]

额外继承的成员函数

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

详细描述

template<typename Func, typename Arg, typename Dummy = void>
struct is_hash< Func, Arg, Dummy >

判断类型是否为有效的哈希函数

模板参数
Func函数类型
Arg参数类型
DummySFINAE参数,默认为void

检查类型是否可以作为哈希函数使用,即是否可调用并返回可转换为size_t的类型。

在文件 hash.hpp330 行定义.


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