[#operator_lt-079] = operator< :mrdocs: Less‐than operators == Synopses Declared in `<netaddress.h>` Orders outpoints by transaction hash, then output index. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-073.adoc[operator<]( xref:COutPoint.adoc[COutPoint] const& a, xref:COutPoint.adoc[COutPoint] const& b); ---- [.small]#xref:operator_lt-073.adoc[_» more..._]# Order two subnets. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-078.adoc[operator<]( xref:CSubNet.adoc[CSubNet] const& a, xref:CSubNet.adoc[CSubNet] const& b); ---- [.small]#xref:operator_lt-078.adoc[_» more..._]# Order two addresses. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-0c.adoc[operator<]( xref:CNetAddr.adoc[CNetAddr] const& a, xref:CNetAddr.adoc[CNetAddr] const& b); ---- [.small]#xref:operator_lt-0c.adoc[_» more..._]# Order two services. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-07a.adoc[operator<]( xref:CService.adoc[CService] const& a, xref:CService.adoc[CService] const& b); ---- [.small]#xref:operator_lt-07a.adoc[_» more..._]# Orders two inventory entries by type and then by hash. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-04.adoc[operator<]( xref:CInv.adoc[CInv] const& a, xref:CInv.adoc[CInv] const& b); ---- [.small]#xref:operator_lt-04.adoc[_» more..._]# Check whether the first feerate is strictly lower than the second. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-068.adoc[operator<]( xref:ByRatio.adoc[ByRatio] const& a, xref:ByRatio.adoc[ByRatio] const& b) noexcept; ---- [.small]#xref:operator_lt-068.adoc[_» more..._]# Order two public keys lexicographically by their serialized bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-05.adoc[operator<]( xref:CPubKey.adoc[CPubKey] const& a, xref:CPubKey.adoc[CPubKey] const& b); ---- [.small]#xref:operator_lt-05.adoc[_» more..._]# Order two extended public keys by public key, then by chain code. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-0e.adoc[operator<]( xref:CExtPubKey.adoc[CExtPubKey] const& a, xref:CExtPubKey.adoc[CExtPubKey] const& b); ---- [.small]#xref:operator_lt-0e.adoc[_» more..._]# Order two KeyOriginInfo by fingerprint, then path length, then path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-02.adoc[operator<]( xref:KeyOriginInfo.adoc[KeyOriginInfo] const& a, xref:KeyOriginInfo.adoc[KeyOriginInfo] const& b); ---- [.small]#xref:operator_lt-02.adoc[_» more..._]# Order two destinations by their scripts. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-063.adoc[operator<]( xref:CNoDestination.adoc[CNoDestination] const& a, xref:CNoDestination.adoc[CNoDestination] const& b); ---- [.small]#xref:operator_lt-063.adoc[_» more..._]# Order two destinations by their public keys. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-07e.adoc[operator<]( xref:PubKeyDestination.adoc[PubKeyDestination] const& a, xref:PubKeyDestination.adoc[PubKeyDestination] const& b); ---- [.small]#xref:operator_lt-07e.adoc[_» more..._]# Order two destinations by version, then by program. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:operator_lt-0d.adoc[operator<]( xref:WitnessUnknown.adoc[WitnessUnknown] const& w1, xref:WitnessUnknown.adoc[WitnessUnknown] const& w2); ---- [.small]#xref:operator_lt-0d.adoc[_» more..._]# == Return Value * True if a orders before b. * True when `a` orders before `b`. * true if `a` sorts before `b` by 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 before `b`'s. * True if `a`'s public key orders before `b`'s. * True if `w1` orders before `w2`. == Parameters [cols="1,4"] |=== | Name| Description | *a* | The left‐hand outpoint. | *b* | The right‐hand outpoint. | *w1* | The first destination. | *w2* | The second destination. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#