module type S = sig
.. end
Signature for vectors.
type
t
type
elt
val make : ?size:int -> unit -> t
val set : t -> int -> elt -> unit
val get : t -> int -> elt
val clear : t -> unit
val index_max : t -> int
Maximal index given to set
so far, -1 if no value has been set yet.
val length : t -> int
Equivalent to 1 + index_max
.
val capacity : t -> int
Number of cells allocated in memory.
val blit : t -> int -> t -> int -> int -> unit
val default : unit -> elt
Default value in vectors,
Raises Invalid_argument
if no default value is
associated to vectors defined by the module.