reset

Reset a to its default value.

ref @trusted
reset
(
T
)
(
ref T a
)

Parameters

T

the argument type, likely to be infered.

a T

a reference to a T.

Examples

uint a = 159;
a.reset();
assert(a == a.init);

string b = "bla";
b.reset();
assert(b == b.init);

See Also

std.typecons.Nullable.nullify

Meta