cpp/numeric/bit width

If is not zero, calculates the number of bits needed to store the value, that is,. If is zero, returns zero.

.

Return value
Zero if is zero; otherwise, one plus the base-2 logarithm of, with any fractional part discarded.