MCPcopy Create free account
hub / github.com/ElementsProject/elements / operator<

Method operator<

src/primitives/bitcoin/transaction.h:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 bool IsNull() const { return (hash.IsNull() && n == NULL_INDEX); }
36
37 friend bool operator<(const COutPoint& a, const COutPoint& b)
38 {
39 int cmp = a.hash.Compare(b.hash);
40 return cmp < 0 || (cmp == 0 && a.n < b.n);
41 }
42
43 friend bool operator==(const COutPoint& a, const COutPoint& b)
44 {

Callers

nothing calls this directly

Calls 1

CompareMethod · 0.45

Tested by

no test coverage detected