CCVector: update the doc

This commit is contained in:
Fardale 2019-12-14 20:40:33 +01:00 committed by Simon Cruanes
parent 27eb874523
commit 0b759c67b8

View file

@ -130,10 +130,13 @@ val member : eq:('a -> 'a -> bool) -> 'a -> ('a, _) t -> bool
val sort : ('a -> 'a -> int) -> ('a, _) t -> ('a, 'mut) t val sort : ('a -> 'a -> int) -> ('a, _) t -> ('a, 'mut) t
(** Sort the vector, returning a copy of it that is sorted (** Sort the vector, returning a copy of it that is sorted
w.r.t the given ordering. The vector itself is unchanged. *) w.r.t the given ordering. The vector itself is unchanged.
The underlying array of the new vector can be smaller than
the original one. *)
val sort' : ('a -> 'a -> int) -> ('a, rw) t -> unit val sort' : ('a -> 'a -> int) -> ('a, rw) t -> unit
(** Sort the vector in place (modifying it). *) (** Sort the vector in place (modifying it).
This function change the size of the underlying array. *)
val uniq_sort : ('a -> 'a -> int) -> ('a, rw) t -> unit val uniq_sort : ('a -> 'a -> int) -> ('a, rw) t -> unit
(** Sort the array and remove duplicates, in place (e.g. modifying (** Sort the array and remove duplicates, in place (e.g. modifying