The OpenD Programming Language

BigIntView.opOpAssign

Performs bool overflow = big +(-)= big operatrion.

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

Parameters

rhs BigIntView!(const W)

value to add with non-empty coefficients

overflow bool

(overflow) initial iteration overflow Precondition: non-empty coefficients length of greater or equal to the rhs coefficients length.

Return Value

Type: bool

true in case of unsigned overflow

Meta