Instance Property

capacity

The total number of elements that the set can contain without allocating new storage.

Declaration

var capacity: Int { get }

See Also

Inspecting a Set

var isEmpty: Bool

A Boolean value that indicates whether the set is empty.

var count: Int

The number of elements in the set.