Function SharedPtr.load

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

UnqualSmartPtr!This load(MemoryOrder order = MemoryOrder.seq, This)() scope;

Examples

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

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

	assert(y.get == 123);
}