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

# isTriviallyIdentical(to:)

Returns a Boolean value indicating whether two instances refer to the same memory region, and have the same flags (such as isKnownASCII).

## Declaration

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

## Discussion

Discussion note: O(1)
