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
size_t
indexOfFirstOne
()
()
if (
isUnsigned!DefaultBlock
)

Meta