Generic Instance Method


No overview available.


mutating func insert<ConcreteElement>(_ newMember: ConcreteElement) -> (inserted: Bool, memberAfterInsert: 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.