OSDN Git Service

Fix comment referring to nonexistent ElementDeleter
authorRichard Uhler <ruhler@google.com>
Thu, 15 Jan 2015 18:27:22 +0000 (10:27 -0800)
committerRichard Uhler <ruhler@google.com>
Thu, 15 Jan 2015 18:27:22 +0000 (10:27 -0800)
Bug: 18809837
Change-Id: I40ad727907be505b7cb63f3c4bba7f395aaec727

runtime/base/stl_util.h

index ff9f40c..3c5565c 100644 (file)
@@ -57,8 +57,8 @@ void STLDeleteContainerPointers(ForwardIterator begin,
 // If container is NULL, this function is a no-op.
 //
 // As an alternative to calling STLDeleteElements() directly, consider
-// ElementDeleter (defined below), which ensures that your container's elements
-// are deleted when the ElementDeleter goes out of scope.
+// using a container of std::unique_ptr, which ensures that your container's
+// elements are deleted when the container goes out of scope.
 template <class T>
 void STLDeleteElements(T *container) {
   if (!container) return;