NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
phmap::has_hash_value< T > 模板结构体 参考

#include <phmap_utils.h>

静态 Public 属性

static constexpr bool value = std::is_same<decltype(test<T>(0)), yes>::value
 

Private 类型

typedef std::true_type yes
 
typedef std::false_type no
 

静态 Private 成员函数

template<typename U >
static auto test (int) -> decltype(hash_value(std::declval< const U & >())==1, yes())
 
template<typename >
static no test (...)
 

成员类型定义说明

◆ no

template<typename T >
typedef std::false_type phmap::has_hash_value< T >::no
private

◆ yes

template<typename T >
typedef std::true_type phmap::has_hash_value< T >::yes
private

成员函数说明

◆ test() [1/2]

template<typename T >
template<typename >
static no phmap::has_hash_value< T >::test (   ...)
staticprivate

◆ test() [2/2]

template<typename T >
template<typename U >
static auto phmap::has_hash_value< T >::test ( int  ) -> decltype(hash_value(std::declval< const U & >())==1, yes())
staticprivate

类成员变量说明

◆ value

template<typename T >
constexpr bool phmap::has_hash_value< T >::value = std::is_same<decltype(test<T>(0)), yes>::value
staticconstexpr

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