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

Method bucket_size

libCacheSim/dataStructure/sparsepp/spp.h:2642–2645  ·  view source on GitHub ↗

These are tr1 methods. Their idea of 'bucket' doesn't map well to what we do. We just say every bucket has 0 or 1 items in it.

Source from the content-addressed store, hash-verified

2640 // These are tr1 methods. Their idea of 'bucket' doesn't map well to
2641 // what we do. We just say every bucket has 0 or 1 items in it.
2642 size_type bucket_size(size_type i) const
2643 {
2644 return (size_type)(begin(i) == end(i) ? 0 : 1);
2645 }
2646
2647private:
2648 // Because of the above, size_type(-1) is never legal; use it for errors

Callers 2

bucket_sizeMethod · 0.45
bucket_sizeMethod · 0.45

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected