---
title: "==(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/==(_:_:)-9hu5c"
---

# ==(_:_:)

Returns a Boolean value indicating whether the two arguments are equal.

## Declaration

```swift
func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
```

## Parameters

- `lhs`: A raw-representable instance.
- `rhs`: A second raw-representable instance.

## See Also

### Comparing Values

- [!=(_:_:)](swift/!=(_:_:)-9wy5n.md)
- [!=(_:_:)](swift/!=(_:_:)-8pggn.md)
