Return the number of bits in the specified value of the (template parameter) type INTEGER.

Synopsis

Declared in <bdlb_bitutil.h>

template<class INTEGER>
static
int
sizeInBits(INTEGER value = 0);

Return Value

number of bits in the type of value

Parameters

Name

Description

value

value whose bit width is returned

Created with MrDocs