Function RcPtr.load
Returns the non shared
RcPtr
pointer pointed-to by shared
this
.
UnqualSmartPtr!This load(MemoryOrder order = MemoryOrder .seq, This)() scope;
Examples
shared RcPtr!(long) x = RcPtr!(shared long) .make(123);
{
RcPtr!(shared long) y = x .load();
assert(y .useCount == 2);
assert(y .get == 123);
}