prepareSlice

Does almost the same, but does not require replacement, instead only its length, n bytes. This is useful for avoiding memory allocations.

void
prepareSlice
(
T
U
)
(
ref T[] s
,
in U[] slice
,
size_t n
)
if (
is(Unqual!U == T)
)

Meta