[#BloombergLP-bdlma-AligningAllocator-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/AligningAllocator.adoc[AligningAllocator]::AligningAllocator :relfileprefix: ../../../ :mrdocs: Create an `AligningAllocator` object that guarantees alignment by the specified `alignment` (in bytes) of memory allocated. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0 or not supplied, the currently installed default allocator is used. The behavior is undefined unless `alignment` is a power of 2, and the alignment strategy of the alocator used to supply memory is `BSLS_MAXIMUM` or `BSLS_NATURAL`. == Synopsis Declared in `<bdlma_aligningallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit AligningAllocator( xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] alignment, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#