cptr::operator<=>

Orders a ptr and a strict_ptr to the same type by address.

Synopsis

Declared in <cptr/ptr.hpp>

template<bool S>
requires (S != Strict)
constexpr
std::strong_ordering
operator<=>(
    basic_ptr a,
    basic_ptr<T, Cage, S> const& b) noexcept;

NOTE

This function is a hidden friend of basic_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