[#BloombergLP-bslma-AllocatorUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::AllocatorUtil :relfileprefix: ../../ :mrdocs: Namespace for utility functions on allocators == Synopsis Declared in `<bslma_allocatorutil.h>` [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. | xref:BloombergLP/bslma/AllocatorUtil/allocateObject.adoc[`allocateObject`] | Allocate raw storage for one or more `t_TYPE` objects. | 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`. | xref:BloombergLP/bslma/AllocatorUtil/deallocateObject.adoc[`deallocateObject`] | Deallocate raw storage previously allocated by `allocateObject`. | xref:BloombergLP/bslma/AllocatorUtil/deleteObject.adoc[`deleteObject`] | Destroy the object at `p` and deallocate its storage. | 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]#