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

Function checked_pointer_cast

cpp/src/arrow/util/checked_cast.h:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42template <class T, class U>
43std::shared_ptr<T> checked_pointer_cast(std::shared_ptr<U> r) noexcept {
44#ifdef NDEBUG
45 return std::static_pointer_cast<T>(std::move(r));
46#else
47 return std::dynamic_pointer_cast<T>(std::move(r));
48#endif
49}
50
51template <class T, class U>
52std::unique_ptr<T> checked_pointer_cast(std::unique_ptr<U> r) noexcept {

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected