Return the specified size rounded up to the maximum alignment.
Synopsis
Declared in <bsls_alignmentutil.h>
static
std::size_t
roundUpToMaximalAlignment(std::size_t size);
Description
Return the specified size (in bytes) rounded up to the smallest integral multiple of the maximum alignment. The behavior is undefined unless 0 <= size and size satisfies: ` size <= std::numeric_limits<std::size_t>::max()
-
BSLS_MAX_ALIGNMENT + 1 `
Return Value
size rounded up to a multiple of BSLS_MAX_ALIGNMENT
Parameters
Name |
Description |
size |
size in bytes to round up |
Created with MrDocs