| 350 | bool operator!=(const Optional& opt) const { return !operator==(opt); } |
| 351 | |
| 352 | bool operator<(const Optional& opt) const { |
| 353 | if (HasValue()) { |
| 354 | if (opt.HasValue()) { |
| 355 | return Value() < opt.Value(); |
| 356 | } else { |
| 357 | return false; |
| 358 | } |
| 359 | } else { |
| 360 | return opt.HasValue(); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | bool operator>=(const Optional& opt) const { return !operator<(opt); } |
| 365 |