Module Logtk.Scoped
Scoped Value
type scope= inttype +'a t= 'a * scope
val make : 'a -> int -> 'a tval get : 'a t -> 'aval scope : _ t -> intval set : 'a t -> 'b -> 'b tset v xisxwith the same scope asv
val same_scope : _ t -> _ t -> boolval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> boolval compare : 'a CCOrd.t -> 'a t CCOrd.tval hash : 'a Hash.t -> 'a t -> intval map : ('a -> 'b) -> 'a t -> 'b tval on : ('a -> 'b) -> 'a t -> 'bval on2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'cval pp : 'a CCFormat.printer -> 'a t CCFormat.printerval to_string : 'a CCFormat.printer -> 'a t -> string