[#BloombergLP-bsls-PlatformUtil-roundUpToMaximalAlignment] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/PlatformUtil.adoc[PlatformUtil]::roundUpToMaximalAlignment :relfileprefix: ../../../ :mrdocs: Return the specified `size` (in bytes) rounded up to the smallest integral multiple of the maximum alignment. The behavior is undefined unless `0 <= size`. == Synopsis Declared in `<bsls_platformutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int roundUpToMaximalAlignment(int size); ---- == Description DEPRECATED: Use `AlignmentUtil::roundUpToMaximalAlignment` instead. == Return Value `size` rounded up to a multiple of the maximum alignment == Parameters [cols="1,4"] |=== | Name| Description | *size* | size in bytes to round up |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#