copyEmplace

fnvoid copyEmplace(S, T)(ref S source, ref T target) if (is(immutable S == immutable T)) @system

Emplaces a copy of the specified source value into uninitialized memory, i.e., simulates T target = source copy-construction for cases where the target memory is already allocated and to be initialized with a copy.

Parameters

sourcevalue to be copied into target
targetuninitialized value to be initialized with a copy of source