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

Namespace for utility functions on allocators

== Synopsis

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

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

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/AllocatorUtil/adapt-08.adoc[`adapt`] 
| `adapt` overloads
| xref:BloombergLP/bslma/AllocatorUtil/allocateBytes.adoc[`allocateBytes`] 
| Allocate raw memory of the given size and alignment&period;
| xref:BloombergLP/bslma/AllocatorUtil/allocateObject.adoc[`allocateObject`] 
| Allocate raw storage for one or more `t&lowbar;TYPE` objects&period;
| xref:BloombergLP/bslma/AllocatorUtil/assign-05.adoc[`assign`] 
| `assign` overloads
| xref:BloombergLP/bslma/AllocatorUtil/deallocateBytes.adoc[`deallocateBytes`] 
| Deallocate a block of raw memory previously allocated by `allocateBytes`&period;
| xref:BloombergLP/bslma/AllocatorUtil/deallocateObject.adoc[`deallocateObject`] 
| Deallocate raw storage previously allocated by `allocateObject`&period;
| xref:BloombergLP/bslma/AllocatorUtil/deleteObject.adoc[`deleteObject`] 
| Destroy the object at `p` and deallocate its storage&period;
| xref:BloombergLP/bslma/AllocatorUtil/newObject-08.adoc[`newObject`] 
| `newObject` overloads
| xref:BloombergLP/bslma/AllocatorUtil/swap-0f.adoc[`swap`] 
| `swap` overloads
|===



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