Constructor
| 206 | |
| 207 | /// Constructor |
| 208 | Map(MemoryAllocator& allocator, uint64 capacity = 0) |
| 209 | : mNbAllocatedEntries(0), mNbEntries(0), mHashSize(0), mBuckets(nullptr), |
| 210 | mEntries(nullptr), mNextEntries(nullptr), mAllocator(allocator), mFreeIndex(INVALID_INDEX) { |
| 211 | |
| 212 | if (capacity > 0) { |
| 213 | |
| 214 | reserve(capacity); |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | /// Copy constructor |
| 219 | Map(const Map<K, V>& map) |