diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-27 08:48:26 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-27 08:48:26 +0000 |
commit | 26fb2b92acf70e43f71baa77d1c0d595ab71b143 (patch) | |
tree | 18f0271782d148b07fcda405a8e48e807763d7df /stdlib/queue.mli | |
parent | 4a5afb7ff30426a552e7193f768c06ad33306300 (diff) |
Ajout operation is_empty
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/queue.mli')
-rw-r--r-- | stdlib/queue.mli | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/queue.mli b/stdlib/queue.mli index bd9879041..085cfb003 100644 --- a/stdlib/queue.mli +++ b/stdlib/queue.mli @@ -55,6 +55,9 @@ val clear : 'a t -> unit val copy : 'a t -> 'a t (** Return a copy of the given queue. *) +val is_empty : 'a t -> bool +(** Return [true] if the given queue is empty, [false] otherwise. *) + val length : 'a t -> int (** Return the number of elements in a queue. *) |