Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Unified Diff: cc/base/list_container.cc

Issue 1202153002: Add ListContainer::AppendByMoving (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Appease the compiler overlords with the gift of a type literal suffix Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/base/list_container.cc
diff --git a/cc/base/list_container.cc b/cc/base/list_container.cc
index ef4d08c116faecd8033d11ff4a82a8135f290fef..33511d8af706c17e7146f72e0ea2d0cd905f3c16 100644
--- a/cc/base/list_container.cc
+++ b/cc/base/list_container.cc
@@ -421,6 +421,10 @@ bool ListContainerBase::empty() const {
return data_->IsEmpty();
}
+size_t ListContainerBase::MaxSizeForDerivedClass() const {
+ return data_->element_size();
+}
+
void ListContainerBase::clear() {
data_->Clear();
}

Powered by Google App Engine
This is Rietveld 408576698