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

Return the specified `size` (in bytes) rounded up to the smallest integral multiple of the maximum alignment&period; The behavior is undefined unless `0 &lt;&equals; size` and `size` satisfies&colon; &grave; size &lt;&equals; std&colon;&colon;numeric&lowbar;limits&lt;std&colon;&colon;size&lowbar;t&gt;&colon;&colon;max() &hyphen; BSLS&lowbar;MAX&lowbar;ALIGNMENT &plus; 1 &grave;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
roundUpToMaximalAlignment(std::size&lowbar;t size);
----


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