Module type Pqueue.Max
Output signature of the functor MakeMax.
ocaml
type treasonml
type t;ocaml
type eltreasonml
type elt;ocaml
val create : unit -> treasonml
let create: unit => t;ocaml
val length : t -> intreasonml
let length: t => int;ocaml
val is_empty : t -> boolreasonml
let is_empty: t => bool;ocaml
val add : t -> elt -> unitreasonml
let add: t => elt => unit;ocaml
val add_iter : t -> ((elt -> unit) -> 'x -> unit) -> 'x -> unitreasonml
let add_iter: t => ((elt => unit) => 'x => unit) => 'x => unit;ocaml
val max_elt : t -> elt optionreasonml
let max_elt: t => option(elt);ocaml
val get_max_elt : t -> eltreasonml
let get_max_elt: t => elt;ocaml
val pop_max : t -> elt optionreasonml
let pop_max: t => option(elt);ocaml
val remove_max : t -> unitreasonml
let remove_max: t => unit;ocaml
val clear : t -> unitreasonml
let clear: t => unit;ocaml
val copy : t -> treasonml
let copy: t => t;ocaml
val of_array : elt array -> treasonml
let of_array: array(elt) => t;ocaml
val of_list : elt list -> treasonml
let of_list: list(elt) => t;ocaml
val of_iter : ((elt -> unit) -> 'x -> unit) -> 'x -> treasonml
let of_iter: ((elt => unit) => 'x => unit) => 'x => t;ocaml
val iter_unordered : (elt -> unit) -> t -> unitreasonml
let iter_unordered: (elt => unit) => t => unit;ocaml
val fold_unordered : ('acc -> elt -> 'acc) -> 'acc -> t -> 'accreasonml
let fold_unordered: ('acc => elt => 'acc) => 'acc => t => 'acc;