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

Method ToVector

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

\brief Move every element of this iterator into a vector.

Source from the content-addressed store, hash-verified

191
192 /// \brief Move every element of this iterator into a vector.
193 Result<std::vector<T>> ToVector() {
194 std::vector<T> out;
195 for (auto maybe_element : *this) {
196 ARROW_ASSIGN_OR_RAISE(auto element, maybe_element);
197 out.push_back(std::move(element));
198 }
199 return out;
200 }
201
202 private:
203 /// Implementation of deleter for ptr_: Casts from void* to the wrapped type and

Callers 2

GetFragmentsFunction · 0.80
TEST_PFunction · 0.80

Calls 1

push_backMethod · 0.80

Tested by 1

TEST_PFunction · 0.64