<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UInt64/&+(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s17FixedWidthIntegerPsE2apoiyxx_xtFZ::SYNTHESIZED::s:s6UInt64V"
  },
  "title" : "&+(_:_:)"
}
-->

# &+(_:_:)

Returns the sum of the two given values, wrapping the result in case of
any overflow.

```
static func &+ (lhs: Self, rhs: Self) -> Self
```

## Parameters

`lhs`

The first value to add.

`rhs`

The second value to add.

## Discussion

The overflow addition operator (`&+`) discards any bits that overflow the
fixed width of the integer type. In the following example, the sum of
`100` and `121` is greater than the maximum representable `Int8` value,
so the result is the partial value after discarding the overflowing
bits.

```
let x: Int8 = 10 &+ 21
// x == 31
let y: Int8 = 100 &+ 121
// y == -35 (after overflow)
```

For more about arithmetic with overflow operators, see 
[Overflow
Operators](https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html#ID37) in *[The Swift Programming Language](https://docs.swift.org/swift-book/)*.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)