| 255 | { |
| 256 | public: |
| 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 |