Lines Matching refs:t
99 bool Insert(const T& t) { in Insert() argument
100 const uint64_t h = Hash()(t); in Insert()
106 return Insert(&bucket, t); in Insert()
114 bool Find(const T& t, T* ret, port::RWMutex** ret_lock) { in Find() argument
115 const uint64_t h = Hash()(t); in Find()
123 if (Find(&bucket, t, ret)) { in Find()
135 bool Erase(const T& t, T* ret) { in Erase() argument
136 const uint64_t h = Hash()(t); in Erase()
143 return Erase(&bucket, t, ret); in Erase()
149 port::RWMutex* GetMutex(const T& t) { in GetMutex() argument
150 const uint64_t h = Hash()(t); in GetMutex()
161 for (auto& t : buckets_[i].list_) { in Clear()
162 (*fn)(t); in Clear()
175 typename std::list<T>::iterator Find(std::list<T>* list, const T& t) { in Find() argument
177 if (Equal()(*it, t)) { in Find()
184 bool Insert(Bucket* bucket, const T& t) { in Insert() argument
186 auto it = Find(&bucket->list_, t); in Insert()
192 bucket->list_.push_back(t); in Insert()
196 bool Find(Bucket* bucket, const T& t, T* ret) { in Find() argument
197 auto it = Find(&bucket->list_, t); in Find()
207 bool Erase(Bucket* bucket, const T& t, T* ret) { in Erase() argument
208 auto it = Find(&bucket->list_, t); in Erase()