Home | History | Annotate | Download | only in ceres

Lines Matching full:container

39 //  For a range within a container of pointers, calls delete
58 // Variant of STLDeleteContainerPointers which allows the container to
72 // STLDeleteElements() deletes all the elements in an STL container and clears
73 // the container. This function is suitable for use with a vector, set,
74 // hash_set, or any other STL container which defines sensible begin(), end(),
77 // If container is NULL, this function is a no-op.
80 // ElementDeleter (defined below), which ensures that your container's elements
83 void STLDeleteElements(T *container) {
84 if (!container) return;
85 STLDeleteContainerPointers(container->begin(), container->end());
86 container->clear();