One Logo Pool Ball
Foundation · IOS API REFERENCE

ComparableComparator

struct · iOS 15.0+ · SDK 27.1

struct ComparableComparator<Compared> where Compared : Comparable

A comparator that compares types according to their conformance to the comparable protocol. The comparator uses the relevant type's <doc://com.apple.documentation/documentation/swift/comparable> implementation to compare instances.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ComparableComparator.init(order:)

The containing type needs Swift generic type arguments. (no canonical witness for Compared)

ComparableComparator.compare(_:_:)

This declaration needs Swift generic type arguments. (no canonical witness for Compared)

All Foundation types →