RcPtr.load

Returns the non shared RcPtr pointer pointed-to by shared this.

struct RcPtr
scope
load
(
MemoryOrder order = MemoryOrder.seq
this This
)
()

Examples

shared RcPtr!(long) x = RcPtr!(shared long).make(123);

{
    RcPtr!(shared long) y = x.load();
    assert(y.useCount == 2);

    assert(y.get == 123);
}

Meta