MCPcopy Create free account
hub / github.com/comaps/comaps / Hash

Method Hash

libs/coding/compressed_bit_vector.hpp:257–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255{
256public:
257 static uint64_t Hash(CompressedBitVector const & cbv)
258 {
259 static constexpr uint64_t kBase = 127;
260 uint64_t hash = 0;
261 CompressedBitVectorEnumerator::ForEach(cbv, [&hash](uint64_t i) { hash = hash * kBase + i + 1; });
262 return hash;
263 }
264};
265} // namespace coding

Callers

nothing calls this directly

Calls 1

ForEachFunction · 0.85

Tested by

no test coverage detected