BloombergLP::bdlb::BitStringUtil::assign1

Set one bit in bitString to true.

Synopsis

Declared in <bdlb_bitstringutil.h>

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

Description

Set the bit at the specified index in the specified bitString to true. The behavior is undefined unless index is less than the capacity of bitString.

Parameters

NameDescription
bitStringbit string to modify
indexbit position to set