Instance Methodswift 6.0.3Swift

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; if false, the underlying buffer is released. The default is false.