nullableRef

Instantiator for NullableRef.

@safe pure nothrow
nullableRef
(
T
)
(
T* a
)

Examples

auto x = 42.5;
auto xr = nullableRef(&x);
assert(!xr.isNull);
xr.nullify;
assert(xr.isNull);

Meta