Return the lowest index of a 0 bit in the optional range.

Synopsis

Declared in <bdlc_bitarray.h>

std::size_t
find0AtMinIndex(
    std::size_t begin = 0,
    std::size_t end = k_INVALID_INDEX) const;

Description

Return the index of the least‐significant 0 bit in this array in the range optionally specified by begin and end, and k_INVALID_INDEX otherwise. The range is [begin .. effectiveEnd)], where effectiveEnd == length() if end is not specified and effectiveEnd == end otherwise. The behavior is undefined unless begin <= effectiveEnd <= length().

Return Value

lowest index of a 0 bit in the range, or k_INVALID_INDEX

Parameters

Name

Description

begin

start of the search range (inclusive)

end

end of the search range (exclusive); length if omitted

Created with MrDocs