diff options
author | Richard Uhler <ruhler@google.com> | 2015-01-16 15:59:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-16 15:59:49 +0000 |
commit | d16d76ac64b1b9ed17e9cc17a6afb85f16ce4b51 (patch) | |
tree | 1aac196b6b0798502d0ecd2729af67c0f547c85a | |
parent | 12c03ac7575db242a6f35739bb459e8277115da4 (diff) | |
parent | 3c43f8db38858cbe1e017731cbbb6859a8051162 (diff) |
Merge "Fix comment referring to nonexistent ElementDeleter"
-rw-r--r-- | runtime/base/stl_util.h | 4 |
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; |