Skip to content

ExistentialContainer

Azoy edited this page Mar 17, 2021 · 2 revisions

ExistentialContainer

An existential container is a type in Swift that contains some struct or class with information of what the type it's containing is, and the witness tables needed that the existential (protocol) is.

public struct ExistentialContainer

ABI Stability: Stable since the following

| macOS | iOS/tvOS | watchOS | Linux | Windows |
|-------|----------|---------|-------|---------|
| 10.14 | 12.2     | 5.2     | NA    | NA      |

Properties

base

The base any existential, also known as Any.

var base: AnyExistentialContainer

witnessTable

A pointer to the witness table.

var witnessTable: WitnessTable
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally