Return the specified size rounded up to the maximum alignment.
Declared in <bsls_alignmentutil.h>
static
std::size_t
roundUpToMaximalAlignment(std::size_t size);
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 `
size rounded up to a multiple of BSLS_MAX_ALIGNMENT
| Name | Description |
|---|---|
| size | size in bytes to round up |