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

Utility providing a no&hyphen;op deleter for managed pointers to stack objects&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct ManagedPtrUtil;
----

== Description

This utility class provides a general no&hyphen;op deleter, which is useful when creating managed pointers to stack&hyphen;allocated objects&period;

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/ManagedPtrUtil/allocateManaged-0e.adoc[`allocateManaged`] 
| `allocateManaged` overloads
| xref:BloombergLP/bslma/ManagedPtrUtil/allocatorDeleter.adoc[`allocatorDeleter`] 
| Destroy and deallocate `object` using `allocator`&period;
| xref:BloombergLP/bslma/ManagedPtrUtil/makeManaged.adoc[`makeManaged`] 
| Create and return a `ManagedPtr` to a new `ELEMENT&lowbar;TYPE` object&period;
| xref:BloombergLP/bslma/ManagedPtrUtil/noOpDeleter.adoc[`noOpDeleter`] 
| Deleter function that does nothing&period;
|===



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