NullableRef.bind

Binds the internal state to value.

struct NullableRef(T)
@safe pure nothrow
void
bind
()

Parameters

value T*

A pointer to a value of type T to bind this NullableRef to.

Examples

NullableRef!int nr = new int(42);
assert(nr == 42);

int* n = new int(1);
nr.bind(n);
assert(nr == 1);

Meta

Suggestion Box / Bug Report