MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / operator<

Method operator<

src/prevector.h:488–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486 }
487
488 bool operator<(const prevector<N, T, Size, Diff>& other) const {
489 if (size() < other.size()) {
490 return true;
491 }
492 if (size() > other.size()) {
493 return false;
494 }
495 const_iterator b1 = begin();
496 const_iterator b2 = other.begin();
497 const_iterator e1 = end();
498 while (b1 != e1) {
499 if ((*b1) < (*b2)) {
500 return true;
501 }
502 if ((*b2) < (*b1)) {
503 return false;
504 }
505 ++b1;
506 ++b2;
507 }
508 return false;
509 }
510
511 size_t allocated_memory() const {
512 if (is_direct()) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected