BloombergLP::bsls::PlatformUtil::roundUpToMaximalAlignment

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>

static
int
roundUpToMaximalAlignment(int size);

Description

DEPRECATED: Use AlignmentUtil::roundUpToMaximalAlignment instead.

Return Value

size rounded up to a multiple of the maximum alignment

Parameters

NameDescription
sizesize in bytes to round up