Gets the stored status object, or an OK status if a `T` value is stored. \return The stored non-OK status object, or an OK status if this object has a value.
| 303 | /// \return The stored non-OK status object, or an OK status if this object |
| 304 | /// has a value. |
| 305 | Status status() && { |
| 306 | if (ARROW_PREDICT_TRUE(ok())) return Status::OK(); |
| 307 | auto tmp = internal::UninitializedResult(); |
| 308 | std::swap(status_, tmp); |
| 309 | return tmp; |
| 310 | } |
| 311 | |
| 312 | /// Gets the stored `T` value. |
| 313 | /// |