module Int_ref: functor (
Info
:
sig
include State_builder.Info
val default : unit -> int
end
) ->
Ref
with type data = int
Build a reference on an integer.
Since Carbon-20101201
Parameters: |
Info |
: |
sig include Info val default: unit -> int end
|
|
include State_builder.S
type
data
Type of the referenced value.
val set : data -> unit
Change the referenced value.
val get : unit -> data
Get the referenced value.
val clear : unit -> unit
Reset the reference to its default value.