Return value with the bit at index cleared.
Declared in <bdlb_bitutil.h>
static
unsigned int
withBitCleared(
unsigned int value,
int index);
Return the result of replacing the bit at the specified index in the specified value with 0, transferring all other bits from value unchanged. The behavior is undefined unless 0 <= index < sizeInBits(value).
value with the bit at index cleared
| Name | Description |
|---|---|
| value | value to modify |
| index | bit position to clear |