diff options
author | Richard Uhler <ruhler@google.com> | 2015-01-15 10:27:22 -0800 |
---|---|---|
committer | Richard Uhler <ruhler@google.com> | 2015-01-15 10:27:22 -0800 |
commit | 3c43f8db38858cbe1e017731cbbb6859a8051162 (patch) | |
tree | fe0733425fd12d95ac3c34173360039ae350a014 /runtime/base/stl_util.h | |
parent | cbabd3cba33662b296df7c1d392bdd35b3c978ad (diff) | |
download | android_art-3c43f8db38858cbe1e017731cbbb6859a8051162.tar.gz android_art-3c43f8db38858cbe1e017731cbbb6859a8051162.tar.bz2 android_art-3c43f8db38858cbe1e017731cbbb6859a8051162.zip |
Fix comment referring to nonexistent ElementDeleter
Bug: 18809837
Change-Id: I40ad727907be505b7cb63f3c4bba7f395aaec727
Diffstat (limited to 'runtime/base/stl_util.h')
-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; |