Lines Matching refs:element
392 void Insert(U&& element) { in Insert() argument
393 InsertWithHash(std::forward<U>(element), hashfn_(element)); in Insert()
397 void InsertWithHash(U&& element, size_t hash) { in InsertWithHash() argument
398 DCHECK_EQ(hash, hashfn_(element)); in InsertWithHash()
404 data_[index] = std::forward<U>(element); in InsertWithHash()
454 const T& element = ElementForIndex(i); in TotalProbeDistance() local
455 if (!emptyfn_.IsEmpty(element)) { in TotalProbeDistance()
456 size_t ideal_location = IndexForHash(hashfn_(element)); in TotalProbeDistance()
476 T& element = data_[i]; in Verify() local
477 if (!emptyfn_.IsEmpty(element)) { in Verify()
480 std::swap(temp, element); in Verify()
486 std::swap(temp, element); in Verify()
558 size_t FindIndex(const K& element, size_t hash) const { in FindIndex() argument
563 DCHECK_EQ(hashfn_(element), hash); in FindIndex()
570 if (pred_(slot, element)) { in FindIndex()
625 T& element = old_data[i]; in Resize() local
626 if (!emptyfn_.IsEmpty(element)) { in Resize()
627 data_[FirstAvailableSlot(IndexForHash(hashfn_(element)))] = std::move(element); in Resize()
630 allocfn_.destroy(allocfn_.address(element)); in Resize()