Hashtable.opAssign

Assign rhs to this hashtable. The current hashtable will now become another reference to rhs, unless rhs is null, in which case the current hashtable will become empty. If rhs refers to the current hashtable nothing will happen.

If there are no more references to the previous hashtable the previous hashtable will be destroyed; this leads to a O(length) complexity.

struct Hashtable(K, V)
ref
opAssign
()
(
auto ref typeof(this) rhs
)

Parameters

rhs typeof(this)

a reference to a hashtable

Return Value

Type: auto ref

a reference to this hashtable

Complexity: O(length).

Meta