A weak pointer is a pointer to a heap block that does not cause the heap block to remain live during garbage collection. If the block would otherwise remain live, then then the weak pointer remains pointed to the block. If the block is collected, then the weak pointer is cleared.
include sig ... endval sexp_of_t : ('a ‑> Sexplib.Sexp.t) ‑> 'a t ‑> Sexplib.Sexp.tval create : Core_kernel__.Import.unit ‑> _ tcreate creates an empty weak pointer. One must set it to point it to
something.
val get : 'a t ‑> 'a Core_kernel__.Import.Heap_block.t Core_kernel__.Import.optionval set : 'a t ‑> 'a Core_kernel__.Import.Heap_block.t ‑> Core_kernel__.Import.unit