boost::corosio::operator<=>

Order two endpoints.

Synopsis

std::strong_ordering
operator<=>(
    endpoint const& a,
    endpoint const& b) noexcept;

Description

Establishes a strict total ordering consistent with operator==: equal endpoints compare equivalent. Endpoints are ordered first by address family (IPv4 before IPv6), then by address value, then by port. This makes endpoint usable as a key in ordered containers such as std::map and std::set.

Return Value

The relative order of a and b.

Parameters

Name

Description

a

The left operand

b

The right operand

Created with MrDocs