std:: hash <std::chrono::zoned_time>
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
| Helper classes | ||||
|
hash
<std::chrono::zoned_time>
(C++26)
|
||||
| Deduction guides |
|
定义于头文件
<chrono>
|
||
|
template
<
class
Duration,
class
TimeZonePtr
>
struct hash < std:: chrono :: zoned_time < Duration, TimeZonePtr >> ; |
(C++26 起) | |
针对 std::chrono::zoned_time 的 std::hash 模板特化允许用户获取 std:: chrono :: zoned_time < Duration, TimeZonePtr > 类型对象的哈希值。该特化仅在 std:: hash < Duration > 与 std:: hash < TimeZonePtr > 同时启用时 生效 。
注释
| 功能测试 宏 | 值 | 标准 | 功能 |
|---|---|---|---|
__cpp_lib_chrono
|
202306L
|
(C++26) |
哈希
支持
std::chrono
值类
|
参见
|
(C++11)
|
哈希函数对象
(类模板) |