moveTo

Moves from to to via a destructive copy.

If from is not a valid object, then accessing to will be undefined behaviour.

After the move operation, the original memory location of from will be reset to its base initialized state before any constructors are run.

@nogc @trusted
void
moveTo
(
T
)
(
ref T from
,
ref T to
)

Parameters

from T

The source of the move operation.

to T

The destination of the move operation.

Meta