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

Method operator<

src/primitives/transaction.h:67–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 bool IsNull() const { return (hash.IsNull() && n == NULL_INDEX); }
66
67 friend bool operator<(const COutPoint& a, const COutPoint& b)
68 {
69 int cmp = a.hash.Compare(b.hash);
70 return cmp < 0 || (cmp == 0 && a.n < b.n);
71 }
72
73 friend bool operator==(const COutPoint& a, const COutPoint& b)
74 {

Callers

nothing calls this directly

Calls 1

CompareMethod · 0.45

Tested by

no test coverage detected