「cpp/chrono/day/operator cmp」の版間の差分
提供: cppreference.com
(ページの作成:「{{cpp/chrono/title|1=operator ==,!=,<,<=,>,>= {{small|(std::chrono::day)}}}} {{cpp/chrono/day/navbar}} {{dcl begin}} {{dcl|since=c++20|num=1|1= constexpr bool operator==(...」) |
細 (langlinks) |
||
31行: | 31行: | ||
@6@ {{c|1=unsigned(x) >= unsigned(y)}} | @6@ {{c|1=unsigned(x) >= unsigned(y)}} | ||
− | {{langlinks|en|zh}} | + | {{langlinks|en|zh}} |
2022年7月23日 (土) 10:09時点における版
constexpr bool operator==(const std::chrono::day& x, const std::chrono::day& y) noexcept; |
(1) | (C++20以上) |
constexpr bool operator!=(const std::chrono::day& x, const std::chrono::day& y) noexcept; |
(2) | (C++20以上) |
constexpr bool operator< (const std::chrono::day& x, const std::chrono::day& y) noexcept; |
(3) | (C++20以上) |
constexpr bool operator<=(const std::chrono::day& x, const std::chrono::day& y) noexcept; |
(4) | (C++20以上) |
constexpr bool operator> (const std::chrono::day& x, const std::chrono::day& y) noexcept; |
(5) | (C++20以上) |
constexpr bool operator>=(const std::chrono::day& x, const std::chrono::day& y) noexcept; |
(6) | (C++20以上) |
2つの std::chrono::day、 x
と y
を比較します。
戻り値
1) unsigned(x) == unsigned(y)
2) unsigned(x) != unsigned(y)
3) unsigned(x) < unsigned(y)
4) unsigned(x) <= unsigned(y)
5) unsigned(x) > unsigned(y)
6) unsigned(x) >= unsigned(y)