template <class T> struct hash;
1/numeric_limits<size_t>::max)。| 头文件 | 类型 |
|---|---|
| <functional> | bool |
char | |
signed char | |
unsigned char | |
char16_t | |
char32_t | |
wchar_t | |
short | |
unsigned short | |
int | |
unsigned int | |
long | |
unsigned long | |
long long | |
unsigned long long | |
float | |
double | |
long double | |
T* (对于任何类型 T) | |
| <string> | string |
| wstring | |
| u16string | |
| u32string | |
| <memory> | unique_ptr |
| shared_ptr | |
| <vector> | vector<bool> |
| <bitset> | bitset |
| <system_error> | error_code |
| <typeindex> | type_index |
| <thread> | thread::id |
| 成员类型 | 定义 | 说明 |
|---|---|---|
| result_type | size_t | 生成的哈希值类型。 |
| argument_type | T | 作为参数的值的类型。 |
|
|
same hashes: nts1 and nts2: false str1 and str2: true |