Order two wrapped FeeFracs by feerate.

Synopsis

Declared in <util/feefrac.h>

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

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

Description

Note that we can use std::strong_ordering here, because even though FeeFrac{1,2} and FeeFrac{2,4} are distinct as FeeFracs, they are indistinguishable from ByRatio's perspective (operator== also treats them as equal).

Return Value

The ordering of the feerates of a and b.

Parameters

Name

Description

a

The first operand.

b

The second operand.

Created with MrDocs