std::chrono::operator==,<=>(std::chrono::year)
constexpr bool operator==( const std::chrono::year& x, const std::chrono::year& y ) noexcept; |
(1) | (C++20 起) |
constexpr std::strong_ordering operator<=>( const std::chrono::year& x, const std::chrono::year& y ) noexcept; |
(2) | (C++20 起) |
比较二个 std::chrono::year x
与 y
。
返回值
1) int(x) == int(y)
2) int(x) <=> int(y)