Operator: %=

operator %= { associativity right precedence assignment }

Declarations

func %= <T : _IntegerArithmetic>(_: inout T, rhs: T)

Divides lhs and rhs and stores the remainder in lhs, trapping in case of arithmetic overflow (except in -Ounchecked builds).

Declaration

func %=<T : _IntegerArithmetic>(lhs: inout T, rhs: T)