| 331 | } |
| 332 | |
| 333 | void Initialize(intptr capacity) |
| 334 | { |
| 335 | int_cosize size = GetPrimeish((int_cosize)capacity); |
| 336 | AllocData(size, mEntries, mBuckets); |
| 337 | |
| 338 | mAllocSize = size; |
| 339 | for (int_cosize i = 0; i < (int_cosize)mAllocSize; i++) mBuckets[i] = -1; |
| 340 | mFreeList = -1; |
| 341 | } |
| 342 | |
| 343 | bool Insert(const TKey& key, bool add, TKey** keyPtr) |
| 344 | { |