Index: mojo/public/cpp/bindings/array.h |
diff --git a/mojo/public/cpp/bindings/array.h b/mojo/public/cpp/bindings/array.h |
index d94feb0768c9ce6293c238d7562273b22ab7bc1b..8fb66097d98bca4c082825150e2cd8c0bbe2930b 100644 |
--- a/mojo/public/cpp/bindings/array.h |
+++ b/mojo/public/cpp/bindings/array.h |
@@ -49,6 +49,9 @@ class Array { |
explicit Array(size_t size) : vec_(size), is_null_(false) {} |
~Array() {} |
+ // Copies the contents of |other| into this array. |
+ Array(const std::vector<T>& other) : vec_(other), is_null_(false) {} |
+ |
// Moves the contents of |other| into this array. |
Array(std::vector<T>&& other) : vec_(std::move(other)), is_null_(false) {} |
Array(Array&& other) : is_null_(true) { Take(&other); } |