[#BloombergLP-bslma-ManagedPtr-0fa-release-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::release
:relfileprefix: ../../../
:mrdocs:

`release` overloads

== Synopses

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

Return a raw pointer to the current target object (if any) and the deleter for the currently managed object, and reset this managed pointer to empty&period; It is undefined behavior to run the returned deleter unless the returned pointer to target object is not null&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/ManagedPtr_PairProxy.adoc[ManagedPtr&lowbar;PairProxy&lt;TARGET&lowbar;TYPE, ManagedPtrDeleter&gt;]
xref:BloombergLP/bslma/ManagedPtr-0fa/release-0e.adoc[release]();
----

[.small]#xref:BloombergLP/bslma/ManagedPtr-0fa/release-0e.adoc[_» more&period;&period;&period;_]#

Load the specified `deleter` for the currently managed object and reset this managed pointer to empty&period; Return a raw pointer to the target object (if any) managed by this pointer&period; It is undefined behavior to run the returned deleter unless the returned pointer to target object is not null&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TARGET&lowbar;TYPE*
xref:BloombergLP/bslma/ManagedPtr-0fa/release-00.adoc[release](xref:BloombergLP/bslma/ManagedPtrDeleter.adoc[ManagedPtrDeleter]* deleter);
----

[.small]#xref:BloombergLP/bslma/ManagedPtr-0fa/release-00.adoc[_» more&period;&period;&period;_]#


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