命名空间
变体
操作

std::hash<std::chrono::weekday_indexed>

来自 cppreference.cn
 
 
 
 
定义于头文件 <chrono>
template<> struct hash<std::chrono::weekday_indexed>;
(since C++26)

模板特化 std::hashstd::chrono::weekday_indexed 允许用户获取 std::chrono::weekday_indexed 类型对象的哈希值。 此特化是已启用的。

此特化的 operator()noexcept

[编辑] 注解

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

[编辑] 参见

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