I_GCounterIncrement-only counters.
Conceptually the same as a I_IntVector. The only difference is that Immutable_types.IVector.query t returns the sum of all the elements in the vector.
An Increment-only counter is a Immutable_types.IVector with type elt = int
include Immutable_types.IVector with type elt = intinclude Immutable_types.Mergeableval make : unit -> tCreate a new mergeable element.
val make_in_range : int -> tmake_in_range n creates a new IVector of size ranging from 0 to n. being n greater than 0 and smaller than 2^30.
When merging two CRDTs of different sizes, the smaller one grows and pads the remaining space with zeros.
incr t increments the position associated with the numsite of t. See I_IntVector for more information on numsites.