std::chrono::operator ==,!=,<,<=,>,>= (std::chrono::year)
提供: cppreference.com
constexpr bool operator==(const std::chrono::year& x, const std::chrono::year& y) noexcept; |
(1) | (C++20以上) |
constexpr bool operator!=(const std::chrono::year& x, const std::chrono::year& y) noexcept; |
(2) | (C++20以上) |
constexpr bool operator< (const std::chrono::year& x, const std::chrono::year& y) noexcept; |
(3) | (C++20以上) |
constexpr bool operator<=(const std::chrono::year& x, const std::chrono::year& y) noexcept; |
(4) | (C++20以上) |
constexpr bool operator> (const std::chrono::year& x, const std::chrono::year& y) noexcept; |
(5) | (C++20以上) |
constexpr bool operator>=(const std::chrono::year& x, const std::chrono::year& y) noexcept; |
(6) | (C++20以上) |
2つの std::chrono::year、x
と y
を比較します。
[編集] 戻り値
1) int(x) == int(y)
2) int(x) != int(y)
3) int(x) < int(y)
4) int(x) <= int(y)
5) int(x) > int(y)
6) int(x) >= int(y)