| 128 | /// returned by the visitor, terminating iteration. |
| 129 | template <typename Visitor> |
| 130 | Status Visit(Visitor&& visitor) { |
| 131 | for (;;) { |
| 132 | ARROW_ASSIGN_OR_RAISE(auto value, Next()); |
| 133 | |
| 134 | if (IsIterationEnd(value)) break; |
| 135 | |
| 136 | ARROW_RETURN_NOT_OK(visitor(std::move(value))); |
| 137 | } |
| 138 | |
| 139 | return Status::OK(); |
| 140 | } |
| 141 | |
| 142 | /// Iterators will only compare equal if they are both null. |
| 143 | /// Equality comparability is required to make an Iterator of Iterators |
nothing calls this directly
no test coverage detected