bitsSet

fnauto bitsSet(T)(const T value) if (isIntegral!T) @nogc pure nothrow

Range that iterates the indices of the set bits in value. Index 0 corresponds to the least significant bit. For signed integers, the highest index corresponds to the sign bit.