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

Function GetSharedPtr

cpp/src/arrow/scalar.h:127–129  ·  view source on GitHub ↗

\brief EXPERIMENTAL Enable obtaining shared_ptr from a const Scalar& context.

Source from the content-addressed store, hash-verified

125 /// \brief EXPERIMENTAL Enable obtaining shared_ptr<Scalar> from a const
126 /// Scalar& context.
127 std::shared_ptr<Scalar> GetSharedPtr() const {
128 return const_cast<Scalar*>(this)->shared_from_this();
129 }
130
131 protected:
132 Scalar(std::shared_ptr<DataType> type, bool is_valid)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected