|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
operator== | ||||
| Helper classes | ||||
| Deduction guides |
Defined in header <chrono> | ||
template<class Duration1,class Duration2,class TimeZonePtr> bool operator==(conststd::chrono::zoned_time<Duration1, TimeZonePtr>& x, | (since C++20) | |
Compares the twozoned_time valuesx andy. Twozoned_time objects compare equal if their time points and time zone pointers both compare equal according tooperator==.
The!= operator issynthesized fromoperator==.
x.get_time_zone()== y.get_time_zone()&& x.get_sys_time()== y.get_sys_time(), except that the comparisons are performed on the nonstatic data members ofx andy directly and no copying is performed.