MultiValueMap.add

Adds a single key -> value pair to the map, with time complexity of O(n*log(n)) due to sorting the new entry by its key.

struct MultiValueMap(KeyType, ValueType, alias KeySort = (a, b) => a < b, alias KeyEquals = (a, b) => a == b)
void
add
(
KeyType k
,
ValueType v
)

Parameters

k KeyType

The key.

v ValueType

The value associated with the key.