WithNaN.hookOpOpAssign

void hookOpOpAssign(string x, L, R)(ref L lhs, R rhs)

Defines hooks for binary operators `+=`, `-=`, `*=`, `/=`, `%=`, `^^=`, `&=`, `|=`, `^=`, `<<=`, `>>=`, and `>>>=` for cases where a Checked object is the left-hand side operand. If lhs == WithNaN.defaultValue!Lhs, no action is carried. Otherwise, evaluates the operand. If evaluation does not overflow and fits in Lhs without loss of information or change of sign, sets lhs to the result. Otherwise, sets lhs to WithNaN.defaultValue!Lhs.

Parameters

xThe operator symbol (without the `=`)
lhsThe left-hand side operand (Lhs is the first argument to Checked)
rhsThe right-hand side operand

Returns

void