We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7e71a commit d5b131aCopy full SHA for d5b131a
stdlib/public/Synchronization/Atomics/WordPair.swift
@@ -183,6 +183,18 @@ extension WordPair: Hashable {
183
}
184
185
186
+@available(SwiftStdlib 6.2, *)
187
+extension WordPair: Comparable {
188
+ // Note: This function can have a lower availability than the conformance
189
+ // itself because it's always emit into client.
190
+ @available(SwiftStdlib 6.0, *)
191
+ @_alwaysEmitIntoClient
192
+ @_transparent
193
+ public func <(lhs: WordPair, rhs: WordPair) -> Bool {
194
+ lhs.first < rhs.first || lhs.second < rhs.second
195
+ }
196
+}
197
+
198
@available(SwiftStdlib 6.0, *)
199
@_unavailableInEmbedded
200
extension WordPair: CustomStringConvertible {
0 commit comments