MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / clear_delete

Function clear_delete

extern/imgui/imgui.h:1852–1852  ·  view source on GitHub ↗

Important: does not destruct anything

Source from the content-addressed store, hash-verified

1850
1851 inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything
1852 inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } // Important: never called automatically! always explicit.
1853 inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } // Important: never called automatically! always explicit.
1854
1855 inline bool empty() const { return Size == 0; }

Callers

nothing calls this directly

Calls 2

IM_DELETEFunction · 0.85
clearFunction · 0.70

Tested by

no test coverage detected