SPtr.this

Copy from null

  1. this(typeof(null) )
    struct SPtr(T, Allocator = Mallocator)
    this
    (
    typeof(null)
    )
  2. this(SPtr!(T, Allocator) rhs)

Examples

SPtr!(int*) otherPtr = null;
assert(otherPtr.ptr == null);
otherPtr = newShared!int(42);
assert(*otherPtr == 42);

Meta