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)))
    )
  3. VariantN opBinary(T rhs)
  4. VariantN opBinary(T rhs)
  5. VariantN opBinary(T rhs)
  6. VariantN opOpAssign(T rhs)

Meta

Suggestion Box / Bug Report