「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==(...」) |
細 (→戻り値) |
||
(1人の利用者による、間の1版が非表示) | |||
31行: | 31行: | ||
@6@ {{c|1=unsigned(x) >= unsigned(y)}} | @6@ {{c|1=unsigned(x) >= unsigned(y)}} | ||
− | {{langlinks|en|zh}} | + | {{langlinks|en|zh}} |
2022年12月26日 (月) 22:33時点における最新版
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)