Moves and returns the internally-stored `T` value. This method should only be called if this Result object's status is OK (i.e. a call to ok() returns true), otherwise this call will abort. The Result object is invalidated after this call and will be updated to contain a non-OK status. \return The stored `T` value.
| 348 | /// |
| 349 | /// \return The stored `T` value. |
| 350 | T ValueOrDie() && { |
| 351 | if (ARROW_PREDICT_FALSE(!ok())) { |
| 352 | internal::InvalidValueOrDie(status_); |
| 353 | } |
| 354 | return MoveValueUnsafe(); |
| 355 | } |
| 356 | T operator*() && { return std::move(*this).ValueOrDie(); } |
| 357 | |
| 358 | /// Helper method for implementing Status returning functions in terms of semantically |