dup

fnauto dup(T : V[K], K, V)(T aa)

Creates a new associative array of the same size and copies the contents of the associative array into it.

Parameters

aaThe associative array.

Note

emulated by the compiler during CTFE
fnauto dup(T : V[K], K, V)(T * aa)

ditto

fn@property auto dup(T)(T[] a) if (!is(const(T) : T))

Provide the .dup array property.

fnT[] dup(T)(const(T)[] a) if (is(const(T) : T)) @property

ditto