{
RcPtr!long x = RcPtr!long.make(1);
assert(x.useCount == 1);
x = null;
assert(x.useCount == 0);
assert(x == null);
}
{
RcPtr!(shared long) x = RcPtr!(shared long).make(1);
assert(x.useCount == 1);
x = null;
assert(x.useCount == 0);
assert(x == null);
}
{
shared RcPtr!(long) x = RcPtr!(shared long).make(1);
assert(x.useCount == 1);
x = null;
assert(x.useCount == 0);
assert(x == null);
}
Releases the ownership of the managed object, if any.
After the call, this manages no object.