BitField.__vmap

optimization for bitwise operations

  1. auto __vmap(Fun fun)
  2. auto __vmap(Fun fun)
    struct BitField(Field, I = typeof(cast()Field.init[size_t.init]))
    @optmath
    __vmap
    (
    Fun : RightOp!(op, bool)
    string op
    )
    (
    Fun fun
    )
    if (
    op == "|" ||
    op == "&"
    ||
    op == "^"
    )
    if (
    __traits(isUnsigned, I)
    )
  3. auto __vmap(Fun fun)
  4. alias __map(alias fun) = BitField__map!(Field, I, fun)

Meta