VecRange

Turn a vec_t into an InputRange so we can foreach over each bit in the bit vector. Replaces for (size_t i = 0; (i = vec_index(i, v)) < vec_numbits(v); ++i) { ... } With foreach (i; VecRange(v)) { ... }

extern (C) nothrow @nogc @safe
struct VecRange {
size_t i;
const
vec_t v;
}

Meta