<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/EmptyCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s15EmptyCollectionV"
  },
  "title" : "EmptyCollection"
}
-->

# EmptyCollection

A collection whose element type is `Element` but that is always empty.

```
@frozen struct EmptyCollection<Element>
```

## Relationships

### Conforms To

[`Collection`](/documentation/Swift/Collection)

[`Hashable`](/documentation/Swift/Hashable)

[`Copyable`](/documentation/Swift/Copyable)

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`MutableCollection`](/documentation/Swift/MutableCollection)

[`Sendable`](/documentation/Swift/Sendable)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`Sequence`](/documentation/Swift/Sequence)

[`Escapable`](/documentation/Swift/Escapable)

[`DataProtocol`](/documentation/Foundation/DataProtocol)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`ContiguousBytes`](/documentation/Foundation/ContiguousBytes)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)