MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / check

Method check

libCacheSim/dataStructure/sparsepp/spp.h:589–593  ·  view source on GitHub ↗

Helper function to assert things are ok; eg pos is still in range

Source from the content-addressed store, hash-verified

587
588 // Helper function to assert things are ok; eg pos is still in range
589 void check() const
590 {
591 assert(table);
592 assert(pos <= table->size());
593 }
594
595 // Arithmetic: we just do arithmetic on pos. We don't even need to
596 // do bounds checking, since STL doesn't consider that its job. :-)

Callers

nothing calls this directly

Calls 2

assertFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected