MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / clear

Function clear

KBotExt/imgui/imgui.h:1830–1830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828 inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything
1829
1830 inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything
1831 inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } // Important: never called automatically! always explicit.
1832 inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } // Important: never called automatically! always explicit.
1833

Callers 3

imgui.hFile · 0.85
clear_deleteFunction · 0.85
clear_destructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected