W3cubDocs

/C++

std::chrono::operator ==,!=,<,<=,>,>= (std::chrono::month_day_last)

constexpr bool operator==(const std::chrono::month_day_last& x,
                          const std::chrono::month_day_last& y) noexcept;
(since C++20)
constexpr bool operator!=(const std::chrono::month_day_last& x,
                          const std::chrono::month_day_last& y) noexcept;
(since C++20)
constexpr bool operator< (const std::chrono::month_day_last& x,
                          const std::chrono::month_day_last& y) noexcept;
(since C++20)
constexpr bool operator> (const std::chrono::month_day_last& x,
                          const std::chrono::month_day_last& y) noexcept;
(since C++20)
constexpr bool operator<=(const std::chrono::month_day_last& x,
                          const std::chrono::month_day_last& y) noexcept;
(since C++20)
constexpr bool operator>=(const std::chrono::month_day_last& x,
                          const std::chrono::month_day_last& y) noexcept;
(since C++20)

Compares the two month_day_last objects x and y.

Return value

1) x.month() == y.month()
2) x.month() != y.month()
3) x.month() < y.month()
4) x.month() > y.month()
5) x.month() <= y.month()
6) x.month() >= y.month()

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/month_day_last/operator_cmp