[#BloombergLP-bslstl-SharedPtrAllocateOutofplaceRep-getDeleter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep.adoc[SharedPtrAllocateOutofplaceRep]::getDeleter
:relfileprefix: ../../../
:mrdocs:

Return a pointer to the stored deleter if it matches `type`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptrallocateoutofplacerep&period;h&gt;`

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

== Description

Return a pointer to the deleter stored by the derived representation if the deleter has the same type as that described by the specified `type`, and a null pointer otherwise&period;

== Return Value

pointer to the stored deleter if it matches `type`, otherwise null

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| type information describing the expected deleter type
|===


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