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

Synopsis

Declared in <bsls_alignmentutil.h>

static
bool
is2ByteAligned(void const* address);

Return Value

true if address is 2‐byte aligned, else false

Parameters

Name

Description

address

pointer whose alignment is tested

Created with MrDocs