| 238 | |
| 239 | template <class T, class U> |
| 240 | inline bool operator>(const optional<T>& lhs, const optional<U>& rhs) { |
| 241 | if (!lhs.has_value()) { |
| 242 | return false; |
| 243 | } |
| 244 | if (!rhs.has_value()) { |
| 245 | return true; |
| 246 | } |
| 247 | return lhs.value() > rhs.value(); |
| 248 | } |
| 249 | |
| 250 | template <class T, class U> |
| 251 | inline bool operator>=(const optional<T>& lhs, const optional<U>& rhs) { |