[#bsl-shared_ptr-0a-ptr] = xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared_ptr]::ptr :relfileprefix: ../../ :mrdocs: Return the address providing modifiable access to the object referred to by this shared pointer, or 0 if this shared pointer does not refer to an object. Note that the behavior of this function is the same as `get`. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a/element_type.adoc[element_type]* ptr() const noexcept; ---- == Description DEPRECATED: Use `get` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#