| 457 | } |
| 458 | |
| 459 | void Destroy() noexcept { |
| 460 | if (ARROW_PREDICT_TRUE(status_.ok())) { |
| 461 | static_assert(offsetof(Result<T>, status_) == 0, |
| 462 | "Status is guaranteed to be at the start of Result<>"); |
| 463 | storage_.destroy(); |
| 464 | } |
| 465 | } |
| 466 | }; |
| 467 | |
| 468 | #define ARROW_ASSIGN_OR_RAISE_IMPL(result_name, lhs, rexpr) \ |