ProtocolCxx5.9.0
CxxSet
A C++ type that represents a set of values, which might be repeating.
protocol CxxSet<Element>
C++ standard library types such as std::set
, std::unordered_set
and std::multiset
conform to this protocol.
Requirements
Citizens in Cxx
Members
init<S>(S
) Creates a C++ set containing the elements of a Swift Sequence.
func contains(Self
.Element) -> Bool Returns a Boolean value that indicates whether the given element exists in the set.
Subtypes
protocol CxxUniqueSet
A C++ type that represents a set of unique values.