StaticBitArray.opCast

Convert to size_t[].

  1. void[] opCast()
  2. size_t[] opCast()
    struct StaticBitArray(uint capacity, Block = DefaultBlock)
    @safe
    size_t[]
    opCast
    (
    T : size_t[]
    )
    ()
    if (
    isUnsigned!DefaultBlock
    )

Examples

static bool[] ba = [1,0,1,0,1];
auto a = StaticBitArray!5(ba);
void[] v = cast(void[])a;
assert(v.length == a.dim * size_t.sizeof);

Meta