Quantity.opBinary

Overloaded operators. Only dimensionally correct operations will compile.

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

Meta