The total number of elements that the set can contain without allocating new storage.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
var capacity: Int { get }
The total number of elements that the set can contain without allocating new storage.
SDK
Framework
var capacity: Int { get }
var isEmpty : BoolA Boolean value that indicates whether the set is empty.
var count: IntThe number of elements in the set.