cptr::operator<=>

Orders like the addresses.

Synopsis

Declared in <cptr/ptr.hpp>

constexpr
std::strong_ordering
operator<=>(
    nonnull_ptr a,
    nonnull_ptr b) noexcept;

NOTE

This function is a hidden friend of nonnull_ptr, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

The relative order of the objects

Parameters

NameDescription
aThe left operand
bThe right operand