Function GlobalPtr.get

Get reference to managed object of ElementType or value if ElementType is reference type (class or interface) or dynamic array.

inout inout(GlobalPtr.ElementType) get() pure nothrow @nogc @property scope @trusted;

Examples

GlobalPtr!long x = new long(123);
assert(x.get == 123);

x.get = 321;
assert(x.get == 321);

const y = x;
assert(y.get == 321);
assert(x.get == 321);

static assert(is(typeof(y.get) == const long));