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);

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);

Parameters

Name

Description

bitString

bit string to modify

index

bit position to set

value

value to assign to the bit

numBits

number of bits to set

Created with MrDocs