Function GlobalPtr.element
Get pointer to managed object of ElementType
or reference if ElementType
is reference type (class or interface) or dynamic array.
ElementReferenceTypeImpl!(GetElementType!This) element(This)() pure nothrow @nogc @property @trusted
if (!is(This == shared));
Examples
{
GlobalPtr!long x = new long(123);
assert(*x .element == 123);
x .get = 321;
assert(*x .element == 321);
const y = x;
assert(*y .element == 321);
assert(*x .element == 321);
static assert(is(typeof(y .element) == const(long)*));
}