BloombergLP::bdlb::BitStringUtil::assign1

Set a range of bits in bitString to true.

Synopsis

Declared in <bdlb_bitstringutil.h>

static
void
assign1(
    uint64_t* bitString,
    std::size_t index,
    std::size_t numBits);

Description

Set the specified numBits beginning at the specified index in the specified bitString to true. The behavior is undefined unless bitString has a capacity of at least index + numBits.

Parameters

NameDescription
bitStringbit string to modify
indexstarting bit position
numBitsnumber of bits to set