std::hash<std::chrono::month>
来自 cppreference.cn
定义于头文件 <chrono> |
||
template<> struct hash<std::chrono::month>; |
(自 C++26 起) | |
std::hash
的模板特化 для std::chrono::month 允许用户获取 std::chrono::month
类型的对象的哈希值。此特化为启用的。
此特化的 operator()
为 noexcept
。
[编辑] 注解
特性测试 宏 | 值 | Std | 特性 |
---|---|---|---|
__cpp_lib_chrono |
202306L |
(C++26) | 哈希 支持 std::chrono 值类 |
[编辑] 参见
(C++11) |
哈希函数对象 (类模板) |