Checked.opAssign

Assignment operator. Has the same constraints as the constructor.

struct Checked(T, Hook = Abort)
void
opAssign
(
U
)
(
U rhs
)
if (
is(typeof(Checked!(T, Hook)(rhs)))
)
if (
is(T == Checked!(U, H),
U
H
)
)

Examples

Checked!long a;
a = 42L;
assert(a == 42);
a = 4242;
assert(a == 4242);

Meta

Suggestion Box / Bug Report