BloombergLP::bdlb::BitStringUtil::assign1

assign1 overloads

Synopses

Declared in <bdlb_bitstringutil.h>

Set one bit in bitString to true.

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

Set a range of bits in bitString to true.

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

Parameters

NameDescription
bitStringbit string to modify
indexbit position to set
numBitsnumber of bits to set