Removes all members from the set.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
mutating func removeAll(keepingCapacity keepCapacity: Bool = false)
Parameters
keepingCapacityIf
true, the set’s buffer capacity is preserved; iffalse, the underlying buffer is released. The default isfalse.