The OpenD Programming Language

BigIntView.opOpAssign

Performs bool overflow = big +(-)= scalar operatrion. Precondition: non-empty coefficients

  1. bool opOpAssign(BigIntView!(const W) rhs, bool overflow)
  2. bool opOpAssign(BigUIntView!(const W) rhs, bool overflow)
  3. bool opOpAssign(T rhs)
    struct BigIntView(W)
    @safe @safe pure nothrow @nogc
    static if(isMutable!W && W.sizeof >= 4)
    bool
    opOpAssign
    (
    string op
    T
    )
    (
    const T rhs
    )
    if (
    (
    op == "+" ||
    op == "-"
    )
    &&
    is(T == Signed!W)
    )
    if (
    is(Unqual!W == ubyte) ||
    is(Unqual!W == ushort)
    ||
    is(Unqual!W == uint)
    ||
    is(Unqual!W == ulong)
    )
  4. bool opOpAssign(T rhs)
  5. W opOpAssign(W rhs, W overflow)

Parameters

rhs T

value to add

Return Value

Type: bool

true in case of unsigned overflow

Meta