Less‐than operators
Synopses
Declared in <netaddress.h>
Orders outpoints by transaction hash, then output index.
Order two subnets.
Order two addresses.
Order two services.
Orders two inventory entries by type and then by hash.
Check whether the first feerate is strictly lower than the second.
Order two public keys lexicographically by their serialized bytes.
Order two extended public keys by public key, then by chain code.
bool
operator<(
CExtPubKey const& a,
CExtPubKey const& b);
Order two KeyOriginInfo by fingerprint, then path length, then path.
bool
operator<(
KeyOriginInfo const& a,
KeyOriginInfo const& b);
Order two destinations by their scripts.
bool
operator<(
CNoDestination const& a,
CNoDestination const& b);
Order two destinations by their public keys.
bool
operator<(
PubKeyDestination const& a,
PubKeyDestination const& b);
Order two destinations by version, then by program.
bool
operator<(
WitnessUnknown const& w1,
WitnessUnknown const& w2);
Return Value
-
True if a orders before b.
-
True when
aorders beforeb. -
true if
asorts beforebby type and then by hash. -
True if a's feerate is lower than b's.
-
true if a sorts before b.
-
true if a orders before b.
-
True if
a's script orders beforeb's. -
True if
a's public key orders beforeb's. -
True if
w1orders beforew2.
Parameters
Name |
Description |
a |
The left‐hand outpoint. |
b |
The right‐hand outpoint. |
w1 |
The first destination. |
w2 |
The second destination. |
Created with MrDocs