Protocolswift 6.0.1Cxx
CxxUniqueSet
A C++ type that represents a set of unique values.
protocol CxxUniqueSet<Element> : CxxSet where Self.InsertionResult : CxxPair, Self.InsertionResult.Second == Bool
C++ standard library types such as std::set
and std::unordered_set
conform to this protocol.
Supertypes
protocol CxxSet<Element>
A C++ type that represents a set of values, which might be repeating.
Requirements
Type members
Citizens in Cxx
Instance members
func insert(Self.Element
) -> (inserted: Bool, memberAfterInsert: Self.Element) Inserts the given element in the set if it is not already present.