[#BloombergLP-bslma-SharedPtrRep-getDeleter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrRep.adoc[SharedPtrRep]::getDeleter
:relfileprefix: ../../../
:mrdocs:

Return a pointer to the deleter stored by the derived representation (if any) if the deleter has the same type as that described by the specified `type`, and a null pointer otherwise&period; Note that while this methods appears to be a simple accessor, it is declared as non&hyphen; `const` qualified to support representations storing the deleter directly as a data member&period;

== Synopsis

Declared in `&lt;bslma&lowbar;sharedptrrep&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void*
getDeleter(std::type&lowbar;info const& type) = 0;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
