GBitSet.findHighestActiveBit

int findHighestActiveBit() @trusted nothrow @nogc

Returns the index of the highest active bit, or -1 if no bits are set.