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