Return whether the bit at index in value is set.
Declared in <bdlb_bitutil.h>
static
bool
isBitSet(
unsigned int value,
int index);
Return true if the bit in the specified value at the specified index is set to 1, and false otherwise. The behavior is undefined unless 0 <= index < sizeInBits(value).
true if the bit is set, and false otherwise
| Name | Description |
|---|---|
| value | value to inspect |
| index | bit position to test |