StaticBitArray.indexOfFirstOne

Find index of first set (one) bit or typeof(return).max if no bit set.

Optimized for ones-sparsity.

struct StaticBitArray(uint capacity, Block = DefaultBlock)
@safe const
static if(capacity >= 1)
size_t
indexOfFirstOne
()
()
if (
isUnsigned!DefaultBlock
)

Meta