---
title: "isIdentical(to:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/span/isidentical(to:)"
---

# isIdentical(to:)

Returns a Boolean value indicating whether two Span instances refer to the same region in memory.

## Declaration

```swift
func isIdentical(to other: Span<Element>) -> Bool
```
