Index: mojo/public/cpp/bindings/array.h |
diff --git a/mojo/public/cpp/bindings/array.h b/mojo/public/cpp/bindings/array.h |
index 9b5aff898587ca71bb04ee1dda0f04c1d35f70cc..0ef62619439c7e03642eb1805f3de9d52c212c4b 100644 |
--- a/mojo/public/cpp/bindings/array.h |
+++ b/mojo/public/cpp/bindings/array.h |
@@ -68,6 +68,9 @@ class Array { |
bool is_null() const { return is_null_; } |
+ ConstRefType front() const { return vec_.front(); } |
+ RefType front() { return vec_.front(); } |
+ |
size_t size() const { return vec_.size(); } |
ConstRefType at(size_t offset) const { return Traits::at(&vec_, offset); } |