Function Amount.add

Add another value to this Amount

bool add (
  in const(Amount) other
) pure nothrow @nogc @safe;

Parameters

NameDescription
other Another Amount value. If the value is invalid, false will be returned.

Returns

true if the addition returned a number within bounds. false if the number is out of the [0; MaxUnitSupply] bound.