std:: hash <std::chrono::year_month_day_last>
From cppreference.net
<
cpp
|
chrono
|
year month day last
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::year_month_day_last
| Member functions | ||||
| Nonmember functions | ||||
| Helper classes | ||||
|
hash
<std::chrono::year_month_day_last>
(C++26)
|
|
定义于头文件
<chrono>
|
||
|
template
<>
struct
hash
<
std::
chrono
::
year_month_day_last
>
;
|
(C++26 起) | |
针对 std::chrono::year_month_day_last 的 std::hash 模板特化允许用户获取 std:: chrono :: year_month_day_last 类型对象的哈希值。此特化已 启用 。
此特化的 operator ( ) 为 noexcept 。
注释
| 功能测试 宏 | 值 | 标准 | 功能 |
|---|---|---|---|
__cpp_lib_chrono
|
202306L
|
(C++26) |
哈希
支持
std::chrono
值类
|
参阅
|
(C++11)
|
哈希函数对象
(类模板) |