std::chrono::operator==,<=>(std::chrono::month)
来自cppreference.com
constexpr bool operator==( const std::chrono::month& x, const std::chrono::month& y ) noexcept; |
(1) | (C++20 起) |
constexpr std::strong_ordering operator<=>( const std::chrono::month& x, const std::chrono::month& y ) noexcept; |
(2) | (C++20 起) |
比较二个 std::chrono::month x
与 y
。
返回值
1) unsigned(x) == unsigned(y)
2) unsigned(x) <=> unsigned(y)