[#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&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum AlignmentStrategy;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `MAXIMUM&lowbar;ALIGNMENT` 
| Return memory on a maximally&hyphen;aligned boundary (`bsls&colon;&colon;AlignmentUtil&colon;&colon;BSLS&lowbar;MAX&lowbar;ALIGNMENT`), as required for ANSI standard allocators&period;
| `NATURAL&lowbar;ALIGNMENT` 
| Return memory aligned on the largest power of two dividing the requested size (up to `bsls&colon;&colon;AlignmentUtil&colon;&colon;BSLS&lowbar;MAX&lowbar;ALIGNMENT`)&period;
|===



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