---
title: isEmpty
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unsafebufferpointer/isempty
---

# isEmpty

A Boolean value indicating whether the buffer is empty.

## Declaration

```swift
var isEmpty: Bool { get }
```

## Discussion

Discussion note: O(1)
