SafeRefCounted containing val.SafeRefCounted!(T, RefCountedAutoInitialize.no) safeRefCounted(T)(T val)Initializes a SafeRefCounted with val. The template parameter T of SafeRefCounted is inferred from val. This function can be used to move non-copyable values to the heap. It also disables the autoInit option of SafeRefCounted.
val | The value to be reference counted |
SafeRefCounted containing val.