BloombergLP::bsls::AlignmentUtil::pointerAlignment

Return the alignment of the specified address. Returns 0 if address is 0. Note that the returned value might be larger than BSLS_MAX_ALIGNMENT.

Synopsis

Declared in <bsls_alignmentutil.h>

static
std::size_t
pointerAlignment(void const* address);

Return Value

alignment of address, or 0 if address is 0

Parameters

NameDescription
addresspointer whose alignment is computed