| 331 | |
| 332 | template <typename Value, typename Key, typename GetKey, typename Hash, typename Equals, typename Allocator> |
| 333 | void FlatHashTable<Value, Key, GetKey, Hash, Equals, Allocator>::clear() { |
| 334 | if (m_buckets.empty()) |
| 335 | return; |
| 336 | |
| 337 | for (size_t i = 0; i < m_buckets.size() - 1; ++i) |
| 338 | m_buckets[i].setEmpty(); |
| 339 | m_filledCount = 0; |
| 340 | } |
| 341 | |
| 342 | template <typename Value, typename Key, typename GetKey, typename Hash, typename Equals, typename Allocator> |
| 343 | auto FlatHashTable<Value, Key, GetKey, Hash, Equals, Allocator>::insert(Value value) -> pair<iterator, bool> { |