Return the index of the most‐significant 0 bit in a range.

Synopsis

Declared in <bdlb_bitstringutil.h>

static
std::size_t
find0AtMaxIndex(
    uint64_t const* bitString,
    std::size_t begin,
    std::size_t end);

Description

Return the index of the most‐significant 0 bit in the specified bitString in the specified range [begin .. end)], if such a bit exists, and k_INVALID_INDEX otherwise. The behavior is undefined unless begin <= end and end is less than or equal to the length of bitString.

Return Value

index of the most‐significant 0 bit, or k_INVALID_INDEX

Parameters

Name

Description

bitString

bit string to search

begin

inclusive start of the search range

end

exclusive end of the search range

Created with MrDocs