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

Function shared_ptr_vector

r/src/filesystem.cpp:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143
144template <typename T>
145std::vector<std::shared_ptr<T>> shared_ptr_vector(const std::vector<T>& vec) {
146 std::vector<std::shared_ptr<fs::FileInfo>> res(vec.size());
147 std::transform(vec.begin(), vec.end(), res.begin(),
148 [](const fs::FileInfo& x) { return std::make_shared<fs::FileInfo>(x); });
149 return res;
150}
151
152// [[arrow::export]]
153cpp11::list fs___FileSystem__GetTargetInfos_Paths(

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected