BloombergLP::bdlb::BitStringUtil::assign

assign overloads

Synopses

Declared in <bdlb_bitstringutil.h>

Set one bit in bitString to value.

static
void
assign(
    uint64_t* bitString,
    std::size_t index,
    bool value);
» more...

Set a range of bits in bitString to value.

static
void
assign(
    uint64_t* bitString,
    std::size_t index,
    bool value,
    std::size_t numBits);
» more...

Parameters

NameDescription
bitStringbit string to modify
indexbit position to set
valuevalue to assign to the bit
numBitsnumber of bits to set