BloombergLP::bdlb::BitUtil::isBitSet

isBitSet overloads

Synopses

Declared in <bdlb_bitutil.h>

Return whether the bit at index in value is set.

static
bool
isBitSet(
    unsigned int value,
    int index);
» more...

Same as the unsigned int overload.

static
bool
isBitSet(
    unsigned long value,
    int index);
» more...

Same as the unsigned int overload.

static
bool
isBitSet(
    unsigned long long value,
    int index);
» more...

Return Value

true if the bit is set, and false otherwise

Parameters

NameDescription
valuevalue to inspect
indexbit position to test