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

Method check

libCacheSim/dataStructure/sparsepp/spp.h:691–695  ·  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

689
690 // Helper function to assert things are ok; eg pos is still in range
691 void check() const
692 {
693 assert(table);
694 assert(pos <= table->size());
695 }
696
697 // Arithmetic: we just do arithmetic on pos. We don't even need to
698 // 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