[#BloombergLP-bslma-ManagedPtr_Members-deleter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr_Members.adoc[ManagedPtr&lowbar;Members]::deleter
:relfileprefix: ../../../
:mrdocs:

Return a reference to the deleter for the currently managed object&period;

== Synopsis

Declared in `&lt;bslma&lowbar;managedptr&lowbar;members&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/ManagedPtrDeleter.adoc[ManagedPtrDeleter] const&
deleter() const;
----

== Description

Return a reference providing non&hyphen;modifiable access to the deleter used to destroy the currently managed object (if any)&period; The behavior is undefined unless `pointer` is not null&period;

== Return Value

non&hyphen;modifiable reference to the deleter for the managed object


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