| 545 | } |
| 546 | |
| 547 | size_t NextIndex(size_t index) const { |
| 548 | if (UNLIKELY(++index >= num_buckets_)) { |
| 549 | DCHECK_EQ(index, NumBuckets()); |
| 550 | return 0; |
| 551 | } |
| 552 | return index; |
| 553 | } |
| 554 | |
| 555 | // Find the hash table slot for an element, or return NumBuckets() if not found. |
| 556 | // This value for not found is important so that iterator(this, FindIndex(...)) == end(). |
nothing calls this directly
no outgoing calls
no test coverage detected