[#ByRatio]
= ByRatio
:mrdocs:

Wrapper around FeeFrac &amp; derived types, which adds a feerate&hyphen;based ordering which treats equal&hyphen;feerate but distinct&hyphen;size FeeFracs as equals&period;

== Synopsis

Declared in `&lt;util&sol;feefrac&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::derived&lowbar;from&lt;FeeFrac&gt; T&gt;
class ByRatio;
----

== Description

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:ByRatio/2constructor.adoc[`ByRatio`]         [.small]#[constructor]#
| Wrap a FeeFrac (or derived type) for feerate&hyphen;based comparison&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:operator_ge.adoc[operator&gt;&equals;]`
| Check whether the first feerate is higher than or equal to the second&period;
| `xref:operator_le.adoc[operator&lt;&equals;]`
| Check whether the first feerate is lower than or equal to the second&period;
| `xref:operator_gt-0c.adoc[operator&gt;]`
| Check whether the first feerate is strictly higher than the second&period;
| `xref:operator_lt-068.adoc[operator&lt;]`
| Check whether the first feerate is strictly lower than the second&period;
| `xref:operator_3way-00a.adoc[operator&lt;&equals;&gt;]`
| Order two wrapped FeeFracs by feerate&period;
| `xref:operator_eq-0cc.adoc[operator&equals;&equals;]`
| Compare two wrapped FeeFracs for equal feerate&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
