std::hash<std::chrono::zoned_time>
來自 cppreference.com
< cpp | chrono | zoned time
定義於標頭檔案 <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) |
雜湊函式物件 (類模板) |