MCPcopy Create free account
hub / github.com/apache/arrow / ValueOrDie

Method ValueOrDie

cpp/src/arrow/result.h:350–355  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Calls 2

okFunction · 0.85
InvalidValueOrDieFunction · 0.85