dup

Undocumented in source.
alias dup = dupShallow

Examples

alias A = int[];
const elements = [1,2,3];
const a = makeWithElements!(A)(elements);
const b = a.dupShallow;
assert(a == b);
assert(a.ptr !is b.ptr);

Meta