BigInt.opUnary

Implements BigInt unary operators.

  1. BigInt opUnary()
  2. BigInt opUnary()
    struct BigInt
    pure nothrow @safe
    opUnary
    (
    string op
    )
    ()
    if (
    op == "++" ||
    op == "--"
    )

Examples

auto x = BigInt("1234");
assert(-x == BigInt("-1234"));

++x;
assert(x == BigInt("1235"));

Meta