Chromium Code Reviews| Index: src/list.h |
| diff --git a/src/list.h b/src/list.h |
| index a210dfb1b807e19f9e8659e39faaf5f09ee68cd0..cdc0f5a746d28ae08ad3df29cd758769449be688 100644 |
| --- a/src/list.h |
| +++ b/src/list.h |
| @@ -117,6 +117,9 @@ class List { |
| // pointer type. Returns the removed element. |
| INLINE(T RemoveLast()) { return Remove(length_ - 1); } |
| + // Allocates space for 'length' elements. |
|
mnaganov (inactive)
2012/05/08 12:05:20
nit: Please state that it also deletes current lis
alexeif
2012/05/09 12:38:07
Done.
|
| + INLINE(void Allocate(int length)); |
| + |
| // Clears the list by setting the length to zero. Even if T is a |
| // pointer type, clearing the list doesn't delete the entries. |
| INLINE(void Clear()); |