Compare two miniscript subtrees, using a non-recursive algorithm.
Declared in <script/miniscript.h>
int
Compare(
Node<Key> const& node1,
Node<Key> const& node2);
This function is a hidden friend of Node, declared only inside that class: it can be found only through argument-dependent lookup.
-1 if node1 orders before node2, 1 if after, 0 if equal.
| Name | Description |
|---|---|
| node1 | The first subtree to compare. |
| node2 | The second subtree to compare. |