From 3c43f8db38858cbe1e017731cbbb6859a8051162 Mon Sep 17 00:00:00 2001 From: Richard Uhler Date: Thu, 15 Jan 2015 10:27:22 -0800 Subject: Fix comment referring to nonexistent ElementDeleter Bug: 18809837 Change-Id: I40ad727907be505b7cb63f3c4bba7f395aaec727 --- runtime/base/stl_util.h | 4 ++-- 1 file 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 void STLDeleteElements(T *container) { if (!container) return; -- cgit v1.2.3-59-g8ed1b