MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / Map

Method Map

include/reactphysics3d/containers/Map.h:208–216  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected