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

Method bucket

libCacheSim/dataStructure/sparsepp/spp.h:3114–3118  ·  view source on GitHub ↗

This is a tr1 method: the bucket a given key is in, or what bucket it would be put in, if it were to be inserted. Shrug. ------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3112 // it would be put in, if it were to be inserted. Shrug.
3113 // ------------------------------------------------------------------
3114 size_type bucket(const key_type& key) const
3115 {
3116 Position pos = _find_position(key);
3117 return pos._idx;
3118 }
3119
3120 // Counts how many elements have key key. For maps, it's either 0 or 1.
3121 // ---------------------------------------------------------------------

Callers 2

bucketMethod · 0.45
bucketMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected