|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
| Helper classes | ||||
hash<std::chrono::zoned_time> (C++26) | ||||
| Deduction guides |
Defined in header <chrono> | ||
template<class Duration,class TimeZonePtr> struct hash<std::chrono::zoned_time<Duration, TimeZonePtr>>; | (since C++26) | |
The template specialization ofstd::hash forstd::chrono::zoned_time allows users to obtain hashes of objects of typestd::chrono::zoned_time<Duration, TimeZonePtr>. This specialization isenabled if and only if bothstd::hash<Duration> andstd::hash<TimeZonePtr> are enabled.
| Feature-test macro | Value | Std | Feature |
|---|---|---|---|
__cpp_lib_chrono | 202306L | (C++26) | Hashing support forstd::chrono value classes |
(C++11) | hash function object (class template)[edit] |