aboutsummaryrefslogtreecommitdiff
path: root/Lib/ocaml/std_vector.i
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ocaml/std_vector.i')
-rw-r--r--Lib/ocaml/std_vector.i13
1 files changed, 11 insertions, 2 deletions
diff --git a/Lib/ocaml/std_vector.i b/Lib/ocaml/std_vector.i
index 53d107447..891d038c9 100644
--- a/Lib/ocaml/std_vector.i
+++ b/Lib/ocaml/std_vector.i
@@ -41,9 +41,18 @@
namespace std {
template <class T> class vector {
public:
+ typedef size_t size_type;
+ typedef ptrdiff_t difference_type;
+ typedef T value_type;
+ typedef value_type* pointer;
+ typedef const value_type* const_pointer;
+ typedef value_type& reference;
+ typedef const value_type& const_reference;
+
vector(unsigned int size = 0);
vector(unsigned int size, const T& value);
- vector(const vector<T>&);
+ vector(const vector& other);
+
unsigned int size() const;
bool empty() const;
void clear();
@@ -71,7 +80,7 @@ namespace std {
let array_to_vector v argcons array =
for i = 0 to (Array.length array) - 1 do
- (invoke v) "set" (C_list [ C_int i ; (argcons array.(i)) ])
+ ignore ((invoke v) "set" (C_list [ C_int i ; (argcons array.(i)) ]))
done ;
v