std.sumtype.SumType.opAssign
- multiple declarations
Function SumType.opAssign
Assigns a value to a SumType
.
Assigning to a SumType
is @system
if any of the
SumType
's members contain pointers or references, since
those members may be reachable through external references,
and overwriting them could therefore lead to memory
corruption.
An individual assignment can be @trusted
if the caller can
guarantee that there are no outstanding references to any
of the SumType
's members when the assignment occurs.
Function SumType.opAssign
Copies the value from another SumType
into this one.
See the value-assignment overload for details on @safe
ty.
Copy assignment is @disable
d if any of Types
is non-copyable.
Function SumType.opAssign
Moves the value from another SumType
into this one.
See the value-assignment overload for details on @safe
ty.
Authors
Paul Backus
License
Boost License 1.0