| 57 | // elements are deleted when the container goes out of scope. |
| 58 | template <class T> |
| 59 | void 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 |
nothing calls this directly
no test coverage detected