Function Amount.opBinary

Operator overloads that will throw in case of over or underflow.

Amount opBinary(string op : "+") (
  in Amount other
) const scope @safe;

Amount opBinary(string op : "-") (
  in Amount other
) const scope @safe;

Amount opBinary(string op : "*") (
  in ulong multiplier
) const scope @safe;