operator<

Less-than operators

Synopses

Declared in <netaddress.h>

Orders outpoints by transaction hash, then output index.

bool
operator<(
    COutPoint const& a,
    COutPoint const& b);
» more...

Order two subnets.

bool
operator<(
    CSubNet const& a,
    CSubNet const& b);
» more...

Order two addresses.

bool
operator<(
    CNetAddr const& a,
    CNetAddr const& b);
» more...

Order two services.

bool
operator<(
    CService const& a,
    CService const& b);
» more...

Orders two inventory entries by type and then by hash.

bool
operator<(
    CInv const& a,
    CInv const& b);
» more...

Check whether the first feerate is strictly lower than the second.

bool
operator<(
    ByRatio const& a,
    ByRatio const& b) noexcept;
» more...

Order two public keys lexicographically by their serialized bytes.

bool
operator<(
    CPubKey const& a,
    CPubKey const& b);
» more...

Order two extended public keys by public key, then by chain code.

bool
operator<(
    CExtPubKey const& a,
    CExtPubKey const& b);
» more...

Order two KeyOriginInfo by fingerprint, then path length, then path.

bool
operator<(
    KeyOriginInfo const& a,
    KeyOriginInfo const& b);
» more...

Order two destinations by their scripts.

bool
operator<(
    CNoDestination const& a,
    CNoDestination const& b);
» more...

Order two destinations by their public keys.

bool
operator<(
    PubKeyDestination const& a,
    PubKeyDestination const& b);
» more...

Order two destinations by version, then by program.

bool
operator<(
    WitnessUnknown const& w1,
    WitnessUnknown const& w2);
» 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

NameDescription
aThe left-hand outpoint.
bThe right-hand outpoint.
w1The first destination.
w2The second destination.