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

Function STLDeleteContainerPointers

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

Source from the content-addressed store, hash-verified

37// stale pointer.
38template <class ForwardIterator>
39void STLDeleteContainerPointers(ForwardIterator begin,
40 ForwardIterator end) {
41 while (begin != end) {
42 ForwardIterator temp = begin;
43 ++begin;
44 delete *temp;
45 }
46}
47
48// STLDeleteElements() deletes all the elements in an STL container and clears
49// the container. This function is suitable for use with a vector, set,

Callers 1

STLDeleteElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected