Lines Matching refs:hash
145 std::hash<T>>::type;
433 iterator FindWithHash(const K& key, size_t hash) { in FindWithHash() argument
434 return iterator(this, FindIndex(key, hash)); in FindWithHash()
438 const_iterator FindWithHash(const K& key, size_t hash) const { in FindWithHash() argument
439 return const_iterator(this, FindIndex(key, hash)); in FindWithHash()
461 std::pair<iterator, bool> InsertWithHash(U&& element, size_t hash) { in InsertWithHash() argument
462 DCHECK_EQ(hash, hashfn_(element)); in InsertWithHash()
472 size_t index = FindIndexImpl(element, hash, find_fail_fn); in InsertWithHash()
607 size_t IndexForHash(size_t hash) const { in IndexForHash() argument
612 return hash % num_buckets_; in IndexForHash()
626 size_t FindIndex(const K& element, size_t hash) const { in FindIndex() argument
632 return FindIndexImpl(element, hash, fail_fn); in FindIndex()
637 size_t FindIndexImpl(const K& element, size_t hash, FailFn fail_fn) const { in FindIndexImpl() argument
639 DCHECK_EQ(hashfn_(element), hash); in FindIndexImpl()
640 size_t index = IndexForHash(hash); in FindIndexImpl()