9.3.12 NextBit

int NextBit(unsigned int bit)

The NextBit method returns the next set bit after the specified bit position, i.e. the set bit with the lowest index greater than the argument. If there are no such set bits, or the value of bit is greater than or equal to OEBitVector::GetSize(), this method returns the value -1.