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

Method ToVector

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

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

Source from the content-addressed store, hash-verified

190
191 /// \brief Move every element of this iterator into a vector.
192 Result<std::vector<T>> ToVector() {
193 std::vector<T> out;
194 for (auto maybe_element : *this) {
195 ARROW_ASSIGN_OR_RAISE(auto element, maybe_element);
196 out.push_back(std::move(element));
197 }
198 return out;
199 }
200
201 private:
202 /// 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