MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / NextIndex

Method NextIndex

Bcore/src/main/cpp/base/hash_set.h:547–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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().

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected