summaryrefslogtreecommitdiff
path: root/stdlib/nativeint.mli
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2002-06-26 09:13:59 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2002-06-26 09:13:59 +0000
commit9e3dc0cd97e8b6b38399ef0acd4dbdf7220aab1f (patch)
treed597a2a817ad7acb6e2d646b52d4676ce76c7309 /stdlib/nativeint.mli
parentefd43cdb543cbed0b617257f612cb45eced2c017 (diff)
downloadocaml-9e3dc0cd97e8b6b38399ef0acd4dbdf7220aab1f.tar.gz
Ajout d'un type t et d'une fonction compare pour permettre l'utilisation de ce module avec la signature OrderedType
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4948 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/nativeint.mli')
-rw-r--r--stdlib/nativeint.mli8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdlib/nativeint.mli b/stdlib/nativeint.mli
index b839352623..db905a3c54 100644
--- a/stdlib/nativeint.mli
+++ b/stdlib/nativeint.mli
@@ -171,4 +171,12 @@ external format : string -> nativeint -> string = "nativeint_format"
This function is deprecated; use {!Printf.sprintf} with a [%nx] format
instead. *)
+type t = nativeint
+(** An alias for the type of native integers. *)
+
+val compare: t -> t -> int
+(** The comparison function for native integers, with the same specification as
+ {!Pervasives.compare}. Along with the type [t], this function [compare]
+ allows the module [Nativeint] to be passed as argument to the functors
+ {!Set.Make} and {!Map.Make}. *)