MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / STLDeleteElements

Function STLDeleteElements

Bcore/src/main/cpp/base/stl_util.h:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57// elements are deleted when the container goes out of scope.
58template <class T>
59void STLDeleteElements(T *container) {
60 if (container != nullptr) {
61 STLDeleteContainerPointers(container->begin(), container->end());
62 container->clear();
63 }
64}
65
66// Given an STL container consisting of (key, value) pairs, STLDeleteValues
67// deletes all the "value" components and clears the container. Does nothing

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected