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

Function GetSharedPtr

cpp/src/arrow/type.h:201–203  ·  view source on GitHub ↗

\brief EXPERIMENTAL: Enable retrieving shared_ptr from a const context.

Source from the content-addressed store, hash-verified

199 // \brief EXPERIMENTAL: Enable retrieving shared_ptr<DataType> from a const
200 // context.
201 std::shared_ptr<DataType> GetSharedPtr() const {
202 return const_cast<DataType*>(this)->shared_from_this();
203 }
204
205 protected:
206 // Dummy version that returns a null string (indicating not implemented).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected