| 227 | |
| 228 | template <class T, class U> |
| 229 | inline bool operator<=(const optional<T>& lhs, const optional<U>& rhs) { |
| 230 | if (!lhs.has_value()) { |
| 231 | return true; |
| 232 | } |
| 233 | if (!rhs.has_value()) { |
| 234 | return false; |
| 235 | } |
| 236 | return lhs.value() <= rhs.value(); |
| 237 | } |
| 238 | |
| 239 | template <class T, class U> |
| 240 | inline bool operator>(const optional<T>& lhs, const optional<U>& rhs) { |