---
title: "==(_:_:)"
framework: foundation
role: symbol
role_heading: Operator
path: "foundation/characterset/==(_:_:)"
---

# ==(_:_:)

Returns true if the two CharacterSets are equal.

## Declaration

```swift
static func == (lhs: CharacterSet, rhs: CharacterSet) -> Bool
```
