std::hash<div class="t-tr-text"><std::type_index><div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig"><std::type_index></div><div class="t-tr-dropdown-notes">这段文字是通过 [http://translate.google.com Google Translate] 自动翻译生成的。<br/>您可以帮助我们检查、纠正翻译中的错误。详情请点击[http://en.cppreference.com/w/Cppreference:MachineTranslations 这里]。</div></div></div></div></div>
来自cppreference.com
< cpp | types | type index
![]() |
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <typeindex> 中定义
|
||
struct hash<type_index>; |
(C++11 起) | |
std::hash为模板专门std::type_index允许用户获取哈希的对象的类型std::type_index.
原文:
The template specialization of std::hash for std::type_index allows users to obtain hashes of objects of type std::type_index.
[编辑] 返回值
有效地返回相同的值
hash_code()
.原文:
Effectively returns the same value as
hash_code()
.[编辑] 另请参阅
回报进行散列代码 (公共成员函数) |