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

# ==(_:_:)

Returns a Boolean value indicating whether two types are identical.

## Declaration

```swift
func == (t0: (any (~Copyable & ~Escapable).Type)?, t1: (any (~Copyable & ~Escapable).Type)?) -> Bool
```

## Parameters

- `t0`: A type to compare.
- `t1`: Another type to compare.

## Return Value

Return Value true if both t0 and t1 are nil or if they represent the same type; otherwise, false.

## See Also

### Tuple Comparison

- [==(_:_:)](swift/==(_:_:)-958in.md)
- [==(_:_:)](swift/==(_:_:)-2htbb.md)
- [==(_:_:)](swift/==(_:_:)-h88g.md)
- [==(_:_:)](swift/==(_:_:)-7lhq7.md)
- [==(_:_:)](swift/==(_:_:)-1hbor.md)
- [==(_:_:)](swift/==(_:_:)-1ud2a.md)
- [!=(_:_:)](swift/!=(_:_:)-18co7.md)
- [!=(_:_:)](swift/!=(_:_:)-7er1l.md)
- [!=(_:_:)](swift/!=(_:_:)-754t2.md)
- [!=(_:_:)](swift/!=(_:_:)-7ao4l.md)
- [!=(_:_:)](swift/!=(_:_:)-4fzl6.md)
- [!=(_:_:)](swift/!=(_:_:)-3nrcc.md)
- [!=(_:_:)](swift/!=(_:_:)-1mxms.md)
