[#BloombergLP-bsls-AlignedBuffer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::AlignedBuffer
:relfileprefix: ../../
:mrdocs:

An instance of this union is a block of raw memory of specified `SIZE` and `ALIGNMENT`&period; A `AlignedBuffer` object does not manage the construction or destruction of any other objects&period; `SIZE` is rounded up to the nearest multiple of `ALIGNMENT`&period; An instantiation of this union template will not compile unless `ALIGNMENT` is a power of two not larger than `AlignmentUtil&colon;&colon;BSLS&lowbar;MAX&lowbar;ALIGNMENT`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;alignedbuffer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int SIZE,
    int ALIGNMENT = AlignmentUtil&colon;&colon;BSLS&lowbar;MAX&lowbar;ALIGNMENT&gt;
class AlignedBuffer;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/AlignedBuffer/buffer-09.adoc[`buffer`] 
| `buffer` overloads
|===



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