Namespaces
Variants
Views
Actions

std::chrono::operator==(std::chrono::zoned_time)

From cppreference.com
< cpp‎ | chrono‎ | zoned time
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)

Elementary string conversions
(C++17)
(C++17)
Stacktrace
 
Date and time utilities
(C++11)
(C++11)
Time of day
(C++20)



(C++20)(C++20)(C++20)(C++20)
Clocks
(C++20)
                                             
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
 
 
Defined in header <chrono>
template <class Duration1, class Duration2, class TimeZonePtr>

bool operator==(const std::chrono::zoned_time<Duration1, TimeZonePtr>& x,

                const std::chrono::zoned_time<Duration2, TimeZonePtr>& y);
(since C++20)

Compares the two zoned_time values x and y. Two zoned_time objects compare equal if their time points and time zone pointers both compare equal according to operator==.

The != operator is synthesized from operator==.

[edit] Return value

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 of x and y directly and no copying is performed.