[#CompareChunks]
= CompareChunks
:mrdocs:

Compare the feerate diagrams implied by the provided sorted chunks data&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::partial&lowbar;ordering
CompareChunks(
    std::span&lt;FeeFrac const&gt; chunks0,
    std::span&lt;FeeFrac const&gt; chunks1);
----

== Description

The implied diagram for each starts at (0, 0), then contains for each chunk the cumulative fee and size up to that chunk, and then extends infinitely to the right with a horizontal line&period;

The caller must guarantee that the sum of the FeeFracs in either of the chunks&apos; data set do not overflow (so sum fees &lt; 2&circ;63, and sum sizes &lt; 2&circ;31)&period;

== Return Value

The ordering of the first diagram relative to the second, or std&colon;&colon;partial&lowbar;ordering&colon;&colon;unordered if the diagrams cross&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chunks0*
| The first sorted chunks data set&period;
| *chunks1*
| The second sorted chunks data set&period;
|===


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