<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UnsafeMutablePointer/Comparable-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Comparable Implementations"
}
-->

# Comparable Implementations

## Topics

### Operators

[`static func ... (Self) -> PartialRangeThrough<Self>`](/documentation/Swift/UnsafeMutablePointer/...(_:)-4mm5n)

Returns a partial range up to, and including, its upper bound.

[`static func ... (Self) -> PartialRangeFrom<Self>`](/documentation/Swift/UnsafeMutablePointer/...(_:)-6ct6f)

Returns a partial range extending upward from a lower bound.

[`static func ... (Self, Self) -> ClosedRange<Self>`](/documentation/Swift/UnsafeMutablePointer/...(_:_:))

Returns a closed range that contains both of its bounds.

[`static func ..< (Self) -> PartialRangeUpTo<Self>`](/documentation/Swift/UnsafeMutablePointer/.._(_:))

Returns a partial range up to, but not including, its upper bound.

[`static func ..< (Self, Self) -> Range<Self>`](/documentation/Swift/UnsafeMutablePointer/.._(_:_:))

Returns a half-open range that contains its lower bound but not its upper
bound.

[`static func > (borrowing Self, borrowing Self) -> Bool`](/documentation/Swift/UnsafeMutablePointer/_(_:_:)-3izq4)

Returns a Boolean value indicating whether the value of the first argument
is greater than that of the second argument.

[`static func < (Self, Self) -> Bool`](/documentation/Swift/UnsafeMutablePointer/_(_:_:)-fe55)

Returns a Boolean value indicating whether the value of the first
argument is less than that of the second argument.

[`static func <= (borrowing Self, borrowing Self) -> Bool`](/documentation/Swift/UnsafeMutablePointer/_=(_:_:)-5i1rt)

Returns a Boolean value indicating whether the value of the first argument
is less than or equal to that of the second argument.

[`static func >= (borrowing Self, borrowing Self) -> Bool`](/documentation/Swift/UnsafeMutablePointer/_=(_:_:)-5nvz5)

Returns a Boolean value indicating whether the value of the first argument
is greater than or equal to that of the second argument.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)