Returns the sum of the two given values, wrapping the result in case of any overflow.
- Xcode 9.0+
- Swift Standard Library
The first value to add.
The second value to add.
The overflow addition operator (
&+) discards any bits that overflow the fixed width of the integer type. In the following example, the sum of
121 is greater than the maximum representable
Int8 value, so the result is the partial value after discarding the overflowing bits.