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

Function MaybeUnbox

r/src/compute.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67template <typename T>
68std::shared_ptr<T> MaybeUnbox(const char* class_name, SEXP x) {
69 if (Rf_inherits(x, "ArrowObject") && Rf_inherits(x, class_name)) {
70 return cpp11::as_cpp<std::shared_ptr<T>>(x);
71 }
72 return nullptr;
73}
74
75namespace cpp11 {
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected