OverflowBehavior
public enum OverflowBehavior
Species the behavior that should occur on overflow during mathematical operations.
-
The result value of the operator is the mathematical result modulo
2^n, wherenis the bit width of the result.Declaration
Swift
case `default` -
The result value of the operator is a poison value if signed overflow occurs.
Declaration
Swift
case noSignedWrap -
The result value of the operator is a poison value if unsigned overflow occurs.
Declaration
Swift
case noUnsignedWrap
OverflowBehavior Enumeration Reference