Instance Property


The total number of key-value pairs that the dictionary can contain without allocating new storage.


var capacity: Int { get }

See Also

Inspecting a Dictionary

var isEmpty: Bool

A Boolean value that indicates whether the dictionary is empty.

var count: Int

The number of key-value pairs in the dictionary.