HashMap.put

put pair (k,v) into hash.

it must be @safe, it inherits @nogc properties from K and V It can resize table if table is overloaded or has too much deleted entries.

struct HashMap(K, V, Allocator = Mallocator, bool GCRangesAllowed = true)
V*
put
@safe
(
K k
,
V v
)
out { assert (__result !is null); }

Return Value

Type: V*

pointer to placed value (pointer is valid until next resize).

Meta