Pqueue.Max(3) OCaml library Pqueue.Max(3)

# [NAME](#NAME)

Pqueue.Max - Output signature of the functor Pqueue.MakeMax.

# [Module type](#Module_type)

Module type Pqueue.Max

# [Documentation](#Documentation)

Module type **Max**  
\= **sig end**

Output signature of the functor **Pqueue.MakeMax** .

*type t*

*type elt*

*val create* : **unit -&gt; t**

*val length* : **t -&gt; int**

*val is\_empty* : **t -&gt; bool**

*val add* : **t -&gt; elt -&gt; unit**

*val add\_iter* : **t -&gt; ((elt -&gt; unit) -&gt; 'x -&gt; unit) -&gt; 'x -&gt; unit**

*val max\_elt* : **t -&gt; elt option**

*val get\_max\_elt* : **t -&gt; elt**

*val pop\_max* : **t -&gt; elt option**

*val remove\_max* : **t -&gt; unit**

*val clear* : **t -&gt; unit**

*val copy* : **t -&gt; t**

*val of\_array* : **elt array -&gt; t**

*val of\_list* : **elt list -&gt; t**

*val of\_iter* : **((elt -&gt; unit) -&gt; 'x -&gt; unit) -&gt; 'x -&gt; t**

*val iter\_unordered* : **(elt -&gt; unit) -&gt; t -&gt; unit**

*val fold\_unordered* : **('acc -&gt; elt -&gt; 'acc) -&gt; 'acc -&gt; t -&gt; 'acc**

2026-09-04 OCamldoc

---

Document: Pqueue.Max(3o) from ocaml 5.5.1-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
