---
title: "isTriviallyIdentical(to:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/rawspan/istriviallyidentical(to:)"
---

# isTriviallyIdentical(to:)

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

## Declaration

```swift
func isTriviallyIdentical(to other: RawSpan) -> Bool
```

## Discussion

Discussion note: O(1)
