命名空间
变体
操作

std::hash<std::chrono::zoned_time>

来自 cppreference.cn
< cpp‎ | chrono‎ | zoned time
 
 
 
 
定义于头文件 <chrono>
template< class Duration, class TimeZonePtr >
struct hash<std::chrono::zoned_time<Duration, TimeZonePtr>>;
(C++26 起)

std::hash 对 std::chrono::zoned_time 的模板特化允许用户获取 std::chrono::zoned_time 类型对象的哈希值。此特化仅在 std::hash<Duration> 和 std::hash<TimeZonePtr> 均启用时启用。

[编辑] 注解

特性测试 标准 特性
__cpp_lib_chrono 202306L (C++26) 哈希 支持 std::chrono 值类

[编辑] 另请参阅

(C++11)
哈希函数对象
(类模板) [编辑]