BloombergLP::bdlb::BitStringUtil::bit

Return the bit value at the specified index in bitString.

Synopsis

Declared in <bdlb_bitstringutil.h>

static
bool
bit(
    uint64_t const* bitString,
    std::size_t index);

Description

Return the bit value at the specified index in the specified bitString. The behavior is undefined unless index is less than the length of bitString.

Return Value

value of the bit at index

Parameters

NameDescription
bitStringbit string to read
indexbit position to read