BloombergLP::bsls::AlignmentUtil::is8ByteAligned

Return true if the specified address is aligned on an 8-byte boundary (i.e., the numerical value of address is evenly divisible by 8), and false otherwise.

Synopsis

Declared in <bsls_alignmentutil.h>

static
bool
is8ByteAligned(void const* address);

Return Value

true if address is 8-byte aligned, else false

Parameters

NameDescription
addresspointer whose alignment is tested