Int128.opBinary

Support binary arithmetic operators + - * / % & | ^ << >> >>>

  1. Int128 opBinary(Int128 op2)
  2. Int128 opBinary(Int op2)
  3. Int128 opBinary(IntLike op2)
    struct Int128
    const
    opBinary
    (
    string op
    IntLike
    )
    (
    auto ref IntLike op2
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    ||
    op == "%"
    ||
    op == "&"
    ||
    op == "|"
    ||
    op == "^"
    )
    &&
    is(IntLike : long)
    &&
    !__traits(isIntegral, IntLike)
    )
  4. Int128 opBinary(long op2)
  5. Int128 opBinary(long op2)
  6. Int128 opBinary(long op2)

Parameters

op

one of the arithmetic binary operators

op2 IntLike

second operand

Return Value

Type: Int128

value after the operation is applied

Meta