All pointers share the cage base, so offsets order like addresses. Null orders first.
Declared in <cptr/ptr.hpp>
constexpr
std::strong_ordering
operator<=>(
basic_ptr a,
basic_ptr b) noexcept;
This function is a hidden friend of basic_ptr, declared only inside that class: it can be found only through argument-dependent lookup.
The relative order of the objects
| Name | Description |
|---|---|
| a | The left operand |
| b | The right operand |