Return the highest index of a 0 bit in the optional range.
Declared in <bdlc_bitarray.h>
std::size_t
find0AtMaxIndex(
std::size_t begin = 0,
std::size_t end = k_INVALID_INDEX) const;
Return the index of the most-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().
highest index of a 0 bit in the range, or k_INVALID_INDEX
| Name | Description |
|---|---|
| begin | start of the search range (inclusive) |
| end | end of the search range (exclusive); length if omitted |