Index: src/vector.h |
diff --git a/src/vector.h b/src/vector.h |
index d3ba7759a62cd3157123f081cb6b56664eee781b..a4fdb1060efa195056e5c9c6e7df11065c4e584a 100644 |
--- a/src/vector.h |
+++ b/src/vector.h |
@@ -58,6 +58,10 @@ class Vector { |
T& last() { return start_[length_ - 1]; } |
+ typedef T* iterator; |
+ inline iterator begin() const { return &start_[0]; } |
+ inline iterator end() const { return &start_[length_]; } |
+ |
// Returns a clone of this vector with a new backing store. |
Vector<T> Clone() const { |
T* result = NewArray<T>(length_); |