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

Method ToDeviceFactory

cpp/src/arrow/c/bridge_test.cc:1455–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453
1454 template <typename ArrayFactory>
1455 static std::function<Result<std::shared_ptr<Array>>()> ToDeviceFactory(
1456 const std::shared_ptr<MemoryManager>& mm, ArrayFactory&& factory) {
1457 return [&]() { return ToDevice(mm, *factory()->data()); };
1458 }
1459
1460 static std::function<Result<std::shared_ptr<Array>>()> JSONArrayFactory(
1461 const std::shared_ptr<MemoryManager>& mm, std::shared_ptr<DataType> type,

Callers

nothing calls this directly

Calls 2

factoryFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected