Module CCRef
References
- since
 - 0.9
 
type 'a printer= Stdlib.Format.formatter -> 'a -> unittype 'a ord= 'a -> 'a -> inttype 'a eq= 'a -> 'a -> booltype 'a sequence= ('a -> unit) -> unittype 'a t= 'a Stdlib.ref
val create : 'a -> 'a tAlias to
ref.
val iter : ('a -> unit) -> 'a t -> unitCall the function on the content of the reference.
val update : ('a -> 'a) -> 'a t -> unitUpdate the reference's content with the given function.
val incr_then_get : int t -> intincr_then_get rincrementsrand returns its new value, think++r.- since
 - 0.17
 
val get_then_incr : int t -> intget_then_incr rincrementsrand returns its old value, thinkr++.- since
 - 0.17