summaryrefslogtreecommitdiff
path: root/runtime/base/stl_util.h
diff options
context:
space:
mode:
authorRichard Uhler <ruhler@google.com>2015-01-16 15:59:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-16 15:59:49 +0000
commitd16d76ac64b1b9ed17e9cc17a6afb85f16ce4b51 (patch)
tree1aac196b6b0798502d0ecd2729af67c0f547c85a /runtime/base/stl_util.h
parent12c03ac7575db242a6f35739bb459e8277115da4 (diff)
parent3c43f8db38858cbe1e017731cbbb6859a8051162 (diff)
Merge "Fix comment referring to nonexistent ElementDeleter"
Diffstat (limited to 'runtime/base/stl_util.h')
-rw-r--r--runtime/base/stl_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/base/stl_util.h b/runtime/base/stl_util.h
index ff9f40cbf8..3c5565cdc0 100644
--- a/runtime/base/stl_util.h
+++ b/runtime/base/stl_util.h
@@ -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;