VariantN.opBinaryRight

Arithmetic between VariantN objects and numeric values. All arithmetic operations return a VariantN object typed depending on the types of both values involved. The conversion rules mimic D's built-in rules for arithmetic conversions.

  1. VariantN opBinaryRight(T lhs)
  2. VariantN opBinaryRight(T lhs)
    struct VariantN(size_t maxDataSize, AllowedTypesParam...)
    opBinaryRight
    (
    string op
    T
    )
    (
    T lhs
    )
    if (
    (
    op == "&" ||
    op == "|"
    ||
    op == "^"
    )
    &&
    is(typeof(opLogic!(T, op)(lhs)))
    )

Meta