MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / STLDeleteValues

Function STLDeleteValues

tensorflow/core/lib/gtl/stl_util.h:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122// the case it's given a NULL pointer.
123template <typename T>
124void STLDeleteValues(T* container) {
125 if (!container) return;
126 auto it = container->begin();
127 while (it != container->end()) {
128 auto temp = it;
129 ++it;
130 delete temp->second;
131 }
132 container->clear();
133}
134
135// Sorts and removes duplicates from a sequence container.
136template <typename T>

Callers 2

~TensorSliceReaderMethod · 0.85
~BundleReaderMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected