| Index: src/vector.h
|
| diff --git a/src/vector.h b/src/vector.h
|
| index 505ef5ad5619bea29f48a6d03b7437169f2fafb1..ada5a1e06fd74a02ba268896e148337a06854dc3 100644
|
| --- a/src/vector.h
|
| +++ b/src/vector.h
|
| @@ -100,6 +100,16 @@ class Vector {
|
| input.length() * sizeof(S) / sizeof(T));
|
| }
|
|
|
| + bool IsEqualTo(Vector<T> other) {
|
| + if (length_ != other.length_) return false;
|
| + for (int i = 0; i < length_; ++i) {
|
| + if (start_[i] != other.start_[i]) {
|
| + return false;
|
| + }
|
| + }
|
| + return true;
|
| + }
|
| +
|
| protected:
|
| void set_start(T* start) { start_ = start; }
|
|
|
|
|