BloombergLP::bdlb::BitStringUtil::isAny1

Return true if any of the specified numBits beginning at the specified index in the specified bitString are 1, and false otherwise. The behavior is undefined unless bitString has a length of at least index + numBits.

Synopsis

Declared in <bdlb_bitstringutil.h>

static
bool
isAny1(
    uint64_t const* bitString,
    std::size_t index,
    std::size_t numBits);