BloombergLP::bdlb::BitStringUtil::find1AtMaxIndex

find1AtMaxIndex overloads

Synopses

Declared in <bdlb_bitstringutil.h>

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

static
std::size_t
find1AtMaxIndex(
    uint64_t const* bitString,
    std::size_t length);
» more...

Return the index of the most-significant 1 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.

static
std::size_t
find1AtMaxIndex(
    uint64_t const* bitString,
    std::size_t begin,
    std::size_t end);
» more...