ProtocolCxx5.9.0
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
A C++ type that represents a set of values, which might be repeating.
Requirements
Citizens in Cxx
Members
func insert(Self
.Element) -> (inserted: Bool, memberAfterInsert: Self.Element) Inserts the given element in the set if it is not already present.