BloombergLP::bdlb::BitUtil::withBitSet

withBitSet overloads

Synopses

Declared in <bdlb_bitutil.h>

Return value with the bit at index set.

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

Same as the unsigned int overload.

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

Same as the unsigned int overload.

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

Return Value

value with the bit at index set

Parameters

NameDescription
valuevalue to modify
indexbit position to set