[#bsl-shared_ptr-0a-numReferences] = xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared_ptr]::numReferences :relfileprefix: ../../ :mrdocs: Return a "snapshot" of the number of shared pointers (including this one) that share ownership of the object managed by this shared pointer. Note that the behavior of this function is the same as `use_count`, and the result may be unreliable in multi‐threaded code for the same reasons. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int numReferences() const noexcept; ---- == Description DEPRECATED: Use `use_count` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#