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