- #pragma once
- #include <compare>
- namespace std {
- template <typename T> std::strong_ordering operator<=>(T const & lhs, T const & rhs) {
- if (lhs < rhs) {
- return std::strong_ordering::less;
- }
- if (lhs > rhs) {
- return std::strong_ordering::greater;
- }
- return std::strong_ordering::equal;
- }
- }
|