BloombergLP::bsls::Alignment::calculateAlignmentOffset

Return the smallest non-negative offset in bytes that, when added to the specified address, yields the specified alignment. The behavior is undefined unless 0 < alignment and alignment is a power of 2.

Synopsis

Declared in <bsls_alignment.h>

static
int
calculateAlignmentOffset(
    void const* address,
    int alignment);

Description

DEPRECATED: Use AlignmentUtil::calculateAlignmentOffset instead.