| 1463 | /// \group relop |
| 1464 | template <class T, class U> |
| 1465 | inline constexpr bool operator>(const optional<T>& lhs, const optional<U>& rhs) { |
| 1466 | return lhs.has_value() && (!rhs.has_value() || *lhs > *rhs); |
| 1467 | } |
| 1468 | /// \group relop |
| 1469 | template <class T, class U> |
| 1470 | inline constexpr bool operator<=(const optional<T>& lhs, const optional<U>& rhs) { |