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

Unified Diff: src/list.h

Issue 115705: Remove list copy constructor (for which there was no corresponding... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « src/jump-target.cc ('k') | src/list-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/list.h
===================================================================
--- src/list.h (revision 2025)
+++ src/list.h (working copy)
@@ -48,7 +48,6 @@
public:
INLINE(explicit List(int capacity)) { Initialize(capacity); }
- INLINE(explicit List(const List<T, P>& other));
INLINE(~List()) { DeleteData(data_); }
INLINE(void* operator new(size_t size)) { return P::New(size); }
@@ -78,6 +77,9 @@
// expanding the list if necessary.
void Add(const T& element);
+ // Add all the elements from the argument list to this list.
+ void AddAll(const List<T, P>& other);
+
// Added 'count' elements with the value 'value' and returns a
// vector that allows access to the elements. The vector is valid
// until the next change is made to this list.
@@ -126,6 +128,11 @@
// Inlined implementation of ResizeAdd, shared by inlined and
// non-inlined versions of ResizeAdd.
void ResizeAddInternal(const T& element);
+
+ // Resize the list.
+ void Resize(int new_capacity);
+
+ DISALLOW_COPY_AND_ASSIGN(List);
};
class FrameElement;
« no previous file with comments | « src/jump-target.cc ('k') | src/list-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698