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

Method clear

include/reactphysics3d/containers/Stack.h:133–141  ·  view source on GitHub ↗

Remove all the items from the stack

Source from the content-addressed store, hash-verified

131
132 /// Remove all the items from the stack
133 void clear() {
134
135 // Destruct the items
136 for (uint64 i = 0; i < mNbElements; i++) {
137 mArray[i].~T();
138 }
139
140 mNbElements = 0;
141 }
142
143 /// Push an element into the stack
144 void push(const T& element) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected