---
title: ".^=(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/simdmask/'._=(_:_:)-wwci"
---

# .^=(_:_:)

Replaces a with the pointwise exclusive or of a and b.

## Declaration

```swift
static func .^= (a: inout SIMDMask<Storage>, b: Bool)
```

## Discussion

Discussion Equivalent to: if b { a = .!a }
