Contents

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

See Also

Removing Elements