Wrapper around FeeFrac & derived types, which adds a feerate‐based ordering which treats equal‐feerate but distinct‐size FeeFracs as equals.

Synopsis

Declared in <util/feefrac.h>

template<std::derived_from<FeeFrac> T>
class ByRatio;

Description

This is not included inside FeeFrac itself, because it is not a total ordering (as would be expected for built‐in comparison operators).

Member Functions

Name

Description

ByRatio [constructor]

Wrap a FeeFrac (or derived type) for feerate‐based comparison.

Friends

Name

Description

operator>=

Check whether the first feerate is higher than or equal to the second.

operator<=

Check whether the first feerate is lower than or equal to the second.

operator>

Check whether the first feerate is strictly higher than the second.

operator<

Check whether the first feerate is strictly lower than the second.

operator<=>

Order two wrapped FeeFracs by feerate.

operator==

Compare two wrapped FeeFracs for equal feerate.

Created with MrDocs