type e = t
val create : ?capacity:int -> ?growth_factor:float -> unit -> t
Create a vector with the given initial capacity and growth factor.
val capacity : t -> int
Returns the current capacity of the given vector.
val ensure_capacity : t -> int -> unit
Ensures that the vector has at least the given capacity.
val growth_factor : t -> float
Returns the growth factor of the given vector.
val set_growth_factor : t -> float -> unit
Sets the growth factor to the given value.
val length : t -> int
Returns the length of the given vector.
val realloc : t -> int -> unit
Sets the capacity of the vector to the given size.
val clear : t -> unit
Removes all the elements in the vector.