Searched refs:hash_set (Results 1 – 2 of 2) sorted by relevance
65 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() local67 ASSERT_TRUE(hash_set.Empty()); in TEST_F()68 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F()69 hash_set.Insert(test_string); in TEST_F()70 auto it = hash_set.Find(test_string); in TEST_F()72 auto after_it = hash_set.Erase(it); in TEST_F()73 ASSERT_TRUE(after_it == hash_set.end()); in TEST_F()74 ASSERT_TRUE(hash_set.Empty()); in TEST_F()75 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F()76 it = hash_set.Find(test_string); in TEST_F()[all …]
66 BaseIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) { in BaseIterator() argument105 size_t NextNonEmptySlot(size_t index, const HashSet* hash_set) const { in NextNonEmptySlot() argument106 const size_t num_buckets = hash_set->NumBuckets(); in NextNonEmptySlot()110 } while (index < num_buckets && hash_set->IsFreeSlot(index)); in NextNonEmptySlot()