[#BloombergLP-bslma-BufferAllocator-AlignmentStrategy] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/BufferAllocator.adoc[BufferAllocator]::AlignmentStrategy :relfileprefix: ../../../ :mrdocs: Types of alignment strategy to allocate memory. == Synopsis Declared in `<bslma_bufferallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum AlignmentStrategy; ---- == Members [cols="1,4"] |=== | Name| Description | `MAXIMUM_ALIGNMENT` | Return memory on a maximally‐aligned boundary (`bsls::AlignmentUtil::BSLS_MAX_ALIGNMENT`), as required for ANSI standard allocators. | `NATURAL_ALIGNMENT` | Return memory aligned on the largest power of two dividing the requested size (up to `bsls::AlignmentUtil::BSLS_MAX_ALIGNMENT`). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#