BloombergLP::bdlb::BitStringUtil::find1AtMinIndex

Return the index of the least-significant 1 bit in bitString.

Synopsis

Declared in <bdlb_bitstringutil.h>

static
std::size_t
find1AtMinIndex(
    uint64_t const* bitString,
    std::size_t length);

Description

Return the index of the least-significant 1 bit in the specified bitString having the specified length, if such a bit exists, and k_INVALID_INDEX otherwise.

Return Value

index of the least-significant 1 bit, or k_INVALID_INDEX

Parameters

NameDescription
bitStringbit string to search
lengthnumber of bits in bitString