Quantity.opBinary

Overloaded operators. Only dimensionally correct operations will compile.

  1. auto opBinary(Q other)
  2. auto opBinary(T other)
    struct Quantity(N, Dimensions dims)
    const
    opBinary
    (
    string op
    T
    )
    ()
    if (
    isNumeric!T &&
    (
    op == "+" ||
    op == "-"
    )
    )
  3. auto opBinary(Q other)
  4. auto opBinary(T other)
  5. auto opBinary(T power)

Meta