AssocArray.getLvalue

Lookup value associated with key and return the address to it. If the key has not been added, it adds it and returns the address to the new value.

struct AssocArray(K, V)
pure nothrow
V*
getLvalue
(
const(K) key
)

Parameters

key
Type: const(K)

key to lookup the value for

Return Value

Type: V*

the address to the value associated with key. If key does not exist, it is added and the address to the new value is returned.

Meta