* Converts this Maybe<> to a value of type T, using a default value if this * Maybe<> is nothing (empty). */
| 67 | * Maybe<> is nothing (empty). |
| 68 | */ |
| 69 | V8_INLINE T FromMaybe(const T& default_value) const { |
| 70 | return has_value_ ? value_ : default_value; |
| 71 | } |
| 72 | |
| 73 | V8_INLINE bool operator==(const Maybe& other) const { |
| 74 | return (IsJust() == other.IsJust()) && |
no outgoing calls