MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / ~Stack

Method ~Stack

include/reactphysics3d/containers/Stack.h:121–130  ·  view source on GitHub ↗

Destructor

Source from the content-addressed store, hash-verified

119
120 /// Destructor
121 ~Stack() {
122
123 clear();
124
125 if (mCapacity > 0) {
126
127 // Release the memory allocated on the heap
128 mAllocator.release(mArray, mCapacity * sizeof(T));
129 }
130 }
131
132 /// Remove all the items from the stack
133 void clear() {

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected