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

Method Visit

cpp/src/arrow/util/iterator.h:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

IsIterationEndFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected