Generic Instance Method


No overview available.


@discardableResult mutating func update<ConcreteElement>(with newMember: ConcreteElement) -> ConcreteElement? where ConcreteElement : Hashable

See Also

Adding Elements

func insert(Element) -> (inserted: Bool, memberAfterInsert: Element)

Inserts the given element in the set if it is not already present.

func update(with: Element) -> Element?

Inserts the given element into the set unconditionally.

func reserveCapacity(Int)

Reserves enough space to store the specified number of elements.