mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
CCVector: update the doc
This commit is contained in:
parent
27eb874523
commit
0b759c67b8
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue