removeAll(keepingCapacity:)
Removes all members from the set.
Declaration
mutating func removeAll(keepingCapacity keepCapacity: Bool = false)Parameters
- keepCapacity:
If
true, the set’s buffer capacity is preserved; iffalse, the underlying buffer is released. The default isfalse.